diff options
Diffstat (limited to 'tools/gfx/vulkan/vk-command-encoder.h')
| -rw-r--r-- | tools/gfx/vulkan/vk-command-encoder.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/gfx/vulkan/vk-command-encoder.h b/tools/gfx/vulkan/vk-command-encoder.h index 1cd05e6eb..11f557433 100644 --- a/tools/gfx/vulkan/vk-command-encoder.h +++ b/tools/gfx/vulkan/vk-command-encoder.h @@ -46,7 +46,7 @@ public: Result setPipelineStateWithRootObjectImpl(IPipelineState* state, IShaderObject* inObject); - void bindRenderState(VkPipelineBindPoint pipelineBindPoint); + Result bindRenderState(VkPipelineBindPoint pipelineBindPoint); }; class ResourceCommandEncoder @@ -212,23 +212,23 @@ public: virtual SLANG_NO_THROW void SLANG_MCALL setIndexBuffer(IBufferResource* buffer, Format indexFormat, Offset offset = 0) override; - void prepareDraw(); + Result prepareDraw(); - virtual SLANG_NO_THROW void SLANG_MCALL + virtual SLANG_NO_THROW Result SLANG_MCALL draw(GfxCount vertexCount, GfxIndex startVertex = 0) override; - virtual SLANG_NO_THROW void SLANG_MCALL + virtual SLANG_NO_THROW Result SLANG_MCALL drawIndexed(GfxCount indexCount, GfxIndex startIndex = 0, GfxIndex baseVertex = 0) override; virtual SLANG_NO_THROW void SLANG_MCALL setStencilReference(uint32_t referenceValue) override; - virtual SLANG_NO_THROW void SLANG_MCALL drawIndirect( + virtual SLANG_NO_THROW Result SLANG_MCALL drawIndirect( GfxCount maxDrawCount, IBufferResource* argBuffer, Offset argOffset, IBufferResource* countBuffer, Offset countOffset) override; - virtual SLANG_NO_THROW void SLANG_MCALL drawIndexedIndirect( + virtual SLANG_NO_THROW Result SLANG_MCALL drawIndexedIndirect( GfxCount maxDrawCount, IBufferResource* argBuffer, Offset argOffset, @@ -240,13 +240,13 @@ public: GfxCount pixelCount, const SamplePosition* samplePositions) override; - virtual SLANG_NO_THROW void SLANG_MCALL drawInstanced( + virtual SLANG_NO_THROW Result SLANG_MCALL drawInstanced( GfxCount vertexCount, GfxCount instanceCount, GfxIndex startVertex, GfxIndex startInstanceLocation) override; - virtual SLANG_NO_THROW void SLANG_MCALL drawIndexedInstanced( + virtual SLANG_NO_THROW Result SLANG_MCALL drawIndexedInstanced( GfxCount indexCount, GfxCount instanceCount, GfxIndex startIndexLocation, @@ -277,9 +277,9 @@ public: virtual SLANG_NO_THROW Result SLANG_MCALL bindPipelineWithRootObject( IPipelineState* pipelineState, IShaderObject* rootObject) override; - virtual SLANG_NO_THROW void SLANG_MCALL dispatchCompute(int x, int y, int z) override; + virtual SLANG_NO_THROW Result SLANG_MCALL dispatchCompute(int x, int y, int z) override; - virtual SLANG_NO_THROW void SLANG_MCALL + virtual SLANG_NO_THROW Result SLANG_MCALL dispatchComputeIndirect(IBufferResource* argBuffer, Offset offset) override; }; @@ -339,7 +339,7 @@ public: virtual SLANG_NO_THROW Result SLANG_MCALL bindPipelineWithRootObject( IPipelineState* pipelineState, IShaderObject* rootObject) override; - virtual SLANG_NO_THROW void SLANG_MCALL dispatchRays( + virtual SLANG_NO_THROW Result SLANG_MCALL dispatchRays( GfxIndex raygenShaderIndex, IShaderTable* shaderTable, GfxCount width, |
