Skip to content

Commit

Permalink
call UseResource
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jul 10, 2024
1 parent 9225576 commit 4d3ef0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 09-BindlessTexturing/bindlesstexturing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ struct BindlessTexturing : public ExampleFramework {
auto heapStart = device->GetGlobalBindlessTextureHeap();

commandBuffer->BindRenderPipeline(renderPipeline);
commandBuffer->UseResource(tx1->GetDefaultView());
commandBuffer->UseResource(tx2->GetDefaultView());
commandBuffer->UseResource(tx3->GetDefaultView());
commandBuffer->SetVertexBytes(ubo, 0);
commandBuffer->SetVertexBuffer(vertexBuffer);
commandBuffer->SetIndexBuffer(indexBuffer);
Expand Down

0 comments on commit 4d3ef0d

Please sign in to comment.