Skip to content

Commit

Permalink
[D3D12] Set root descriptor tables for compute correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jan 17, 2024
1 parent ef77c22 commit 84e3b40
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ void kinc_g5_internal_set_textures(kinc_g5_command_list_t *list) {
list->impl._commandList->SetDescriptorHeaps(2, heaps);
if (compute_pipeline_set) {
list->impl._commandList->SetComputeRootDescriptorTable(0, srvGpu);
list->impl._commandList->SetComputeRootDescriptorTable(1, samplerGpu);
list->impl._commandList->SetComputeRootDescriptorTable(1, srvGpu);
list->impl._commandList->SetComputeRootDescriptorTable(2, samplerGpu);
}
else {
list->impl._commandList->SetGraphicsRootDescriptorTable(0, srvGpu);
Expand Down

0 comments on commit 84e3b40

Please sign in to comment.