From e0054151b5b1b4bc44312e3ca737aa2a9a04ff35 Mon Sep 17 00:00:00 2001 From: skallweitNV <64953474+skallweitNV@users.noreply.github.com> Date: Sun, 12 May 2024 00:11:44 +0200 Subject: add missing Result to IRayTracingCommandEncoder::bindPipline (#4148) --- tools/gfx/d3d12/d3d12-command-encoder.cpp | 4 ++-- tools/gfx/d3d12/d3d12-command-encoder.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gfx/d3d12') diff --git a/tools/gfx/d3d12/d3d12-command-encoder.cpp b/tools/gfx/d3d12/d3d12-command-encoder.cpp index e4d03193b..b88bf3168 100644 --- a/tools/gfx/d3d12/d3d12-command-encoder.cpp +++ b/tools/gfx/d3d12/d3d12-command-encoder.cpp @@ -1339,10 +1339,10 @@ void RayTracingCommandEncoderImpl::deserializeAccelerationStructure( D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE); } -void RayTracingCommandEncoderImpl::bindPipeline( +Result RayTracingCommandEncoderImpl::bindPipeline( IPipelineState* state, IShaderObject** outRootObject) { - bindPipelineImpl(state, outRootObject); + return bindPipelineImpl(state, outRootObject); } Result RayTracingCommandEncoderImpl::dispatchRays( diff --git a/tools/gfx/d3d12/d3d12-command-encoder.h b/tools/gfx/d3d12/d3d12-command-encoder.h index 0632084cf..034749946 100644 --- a/tools/gfx/d3d12/d3d12-command-encoder.h +++ b/tools/gfx/d3d12/d3d12-command-encoder.h @@ -328,7 +328,7 @@ public: serializeAccelerationStructure(DeviceAddress dest, IAccelerationStructure* source) override; virtual SLANG_NO_THROW void SLANG_MCALL deserializeAccelerationStructure( IAccelerationStructure* dest, DeviceAddress source) override; - virtual SLANG_NO_THROW void SLANG_MCALL + virtual SLANG_NO_THROW Result SLANG_MCALL bindPipeline(IPipelineState* state, IShaderObject** outRootObject) override; virtual SLANG_NO_THROW Result SLANG_MCALL bindPipelineWithRootObject(IPipelineState* state, IShaderObject* rootObject) override -- cgit v1.2.3