parent
cb2d6d8553
commit
563e9e253e
|
@ -400,14 +400,12 @@ namespace backend {
|
|||
}
|
||||
// Assumes we have a pipeline already
|
||||
if (!bindgroupsSet.all()) {
|
||||
printf("%s:%d\n", __FUNCTION__, __LINE__);
|
||||
return false;
|
||||
}
|
||||
for (size_t i = 0; i < bindgroups.size(); ++i) {
|
||||
if (auto* bindgroup = bindgroups[i]) {
|
||||
// TODO(kainino@chromium.org): bind group compatibility
|
||||
if (bindgroup->GetLayout() != lastPipeline->GetLayout()->GetBindGroupLayout(i)) {
|
||||
printf("%s:%d: i=%zu\n", __FUNCTION__, __LINE__, i);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,6 +186,7 @@ class InputStateTest : public NXTTest {
|
|||
nxt::CommandBufferBuilder builder = device.CreateCommandBufferBuilder();
|
||||
|
||||
builder.BeginRenderPass(renderpass, framebuffer)
|
||||
.BeginRenderSubpass()
|
||||
.SetPipeline(pipeline);
|
||||
|
||||
uint32_t zeroOffset = 0;
|
||||
|
@ -195,6 +196,7 @@ class InputStateTest : public NXTTest {
|
|||
|
||||
nxt::CommandBuffer commands = builder
|
||||
.DrawArrays(triangles * 4, instances, 0, 0)
|
||||
.EndRenderSubpass()
|
||||
.EndRenderPass()
|
||||
.GetResult();
|
||||
|
||||
|
|
Loading…
Reference in New Issue