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