Skip to content

Commit

Permalink
igl | tests | Fix unbound vertex buffer
Browse files Browse the repository at this point in the history
Summary:
Vertex buffer bindings should match `VertexInputState` provided in the rendering pipeline.

This diff fixes a Vulkan validation error.

Reviewed By: pixelperfect3

Differential Revision: D49175341

fbshipit-source-id: 79c7ccbf5b5ef091d1c18e55965b4b71ec681a8c
  • Loading branch information
corporateshark authored and facebook-github-bot committed Sep 13, 2023
1 parent 93a8f8b commit f043488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/igl/tests/TextureCube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ TEST_F(TextureCubeTest, Passthrough_SampleFromCube) {

auto cmds = cmdBuf_->createRenderCommandEncoder(renderPass_, framebuffer_);
cmds->bindBuffer(data::shader::simplePosIndex, BindTarget::kVertex, vb_, 0);
cmds->bindBuffer(data::shader::simpleUvIndex, BindTarget::kVertex, uv_, 0);

cmds->bindRenderPipelineState(pipelineState);

Expand Down

0 comments on commit f043488

Please sign in to comment.