Skip to content

Commit

Permalink
DXIL Debugger use the correct sampler for GPU Sample operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Oct 25, 2024
1 parent 9b7c3da commit c5e9f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderdoc/driver/shaders/dxil/dxil_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4121,7 +4121,7 @@ void ThreadState::PerformGPUResourceOp(const rdcarray<ThreadState> &workgroups,

RDCASSERTEQUAL(samplerRef->resourceBase.resClass, ResourceClass::Sampler);
// samplerRef->resourceBase must be a Sampler
const DXIL::EntryPointInterface::Sampler &sampler = resRef->resourceBase.samplerData;
const DXIL::EntryPointInterface::Sampler &sampler = samplerRef->resourceBase.samplerData;
samplerData.bias = 0.0f;
samplerData.binding.registerSpace = samplerRef->resourceBase.space;
samplerData.binding.shaderRegister = samplerRef->resourceBase.regBase;
Expand Down

0 comments on commit c5e9f4a

Please sign in to comment.