mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
Various cleanups for updated indexFormat handling
Addresses post-merge comments left by cwallez@ on https://dawn-review.googlesource.com/c/dawn/+/27182 BUG=dawn:502 Change-Id: I9bce09da9bb46e92a4c613df2279bdefdd06d747 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/27761 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Brandon Jones <bajones@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
be53792880
commit
ccda6a0009
@@ -131,7 +131,7 @@ namespace dawn_native {
|
||||
wgpu::IndexFormat pipelineIndexFormat =
|
||||
mLastRenderPipeline->GetVertexStateDescriptor()->indexFormat;
|
||||
if (mIndexFormat != wgpu::IndexFormat::Undefined) {
|
||||
if (!mLastRenderPipeline->IsStripPrimitiveTopology() ||
|
||||
if (!IsStripPrimitiveTopology(mLastRenderPipeline->GetPrimitiveTopology()) ||
|
||||
mIndexFormat == pipelineIndexFormat) {
|
||||
mAspects.set(VALIDATION_ASPECT_INDEX_BUFFER);
|
||||
}
|
||||
@@ -155,7 +155,7 @@ namespace dawn_native {
|
||||
if (!mIndexBufferSet) {
|
||||
return DAWN_VALIDATION_ERROR("Missing index buffer");
|
||||
} else if (mIndexFormat != wgpu::IndexFormat::Undefined &&
|
||||
mLastRenderPipeline->IsStripPrimitiveTopology() &&
|
||||
IsStripPrimitiveTopology(mLastRenderPipeline->GetPrimitiveTopology()) &&
|
||||
mIndexFormat != pipelineIndexFormat) {
|
||||
return DAWN_VALIDATION_ERROR(
|
||||
"Pipeline strip index format does not match index buffer format");
|
||||
|
||||
Reference in New Issue
Block a user