Skip to content

Commit edf099c

Browse files
Vulkan has validation bugs in ex 54
1 parent 125f21d commit edf099c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples_tests/54.Transformations/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,13 +547,17 @@ class TransformationApp : public ApplicationBase
547547
auto gfxLayout = core::make_smart_refctd_ptr<asset::ICPUPipelineLayout>(range,range+1u,scene::ITransformTreeWithNormalMatrices::createRenderDescriptorSetLayout());
548548
pipeline->setLayout(core::smart_refctd_ptr(gfxLayout));
549549

550+
cpu2gpuParams.beginCommandBuffers();
550551
core::smart_refctd_ptr<video::IGPURenderpassIndependentPipeline> rpIndependentPipeline = CPU2GPU.getGPUObjectsFromAssets(&pipeline, &pipeline + 1, cpu2gpuParams)->front();
552+
cpu2gpuParams.waitForCreationToComplete(false);
551553

552554
asset::SBufferBinding<video::IGPUBuffer> colorBufBinding;
553555
colorBufBinding.offset = colorBufferOffset;
554556
colorBufBinding.buffer = colorBuffer;
555557

558+
cpu2gpuParams.beginCommandBuffers();
556559
ret.gpuMesh = CPU2GPU.getGPUObjectsFromAssets(&cpuMesh, &cpuMesh + 1, cpu2gpuParams)->front();
560+
cpu2gpuParams.waitForCreationToComplete(false);
557561
ret.gpuMesh->setVertexBufferBinding(std::move(colorBufBinding), ColorBindingNum);
558562
ret.gpuMesh->setInstanceCount(numInstances);
559563

examples_tests/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ N = No support
8585
| 51.RadixSort | W | N | W | W | N | W | N | W | |
8686
| 52.SystemTest | S | S | S | S | S | S | S | S | |
8787
| 53.ComputeShaders | S | N | S | S | N | S | N | S | |
88-
| 54.Transformations | S | S | S | S | S | S | S | S | |
88+
| 54.Transformations | Y | Y | B | S | S | S | S | S | |
8989
| 55.RGB18E7S3 | S | S | S | S | S | S | N | N | |
9090
| 56.RayQuery | N | N | Y | N | N | S | N | S | |
9191
| 57.AndroidSample | N | N | N | N | N | N | S | S | |

0 commit comments

Comments
 (0)