mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Update VertexInput (InputState) to match the spec - Part 3
Rename num{Attribute|Buffer}s to {Attribute|Buffer}Count for VertexInput
BUG=dawn:80, dawn:107
Change-Id: I7ad62f28449e6283d5c5788dfbd5df1d1e9c813e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7861
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
67ab1ea8c7
commit
2d4b529443
@@ -22,7 +22,7 @@ namespace utils {
|
||||
dawn::VertexInputDescriptor* descriptor = this;
|
||||
|
||||
descriptor->indexFormat = dawn::IndexFormat::Uint32;
|
||||
descriptor->numBuffers = 0;
|
||||
descriptor->bufferCount = 0;
|
||||
|
||||
// Fill the default values for vertexBuffers and vertexAttributes in buffers.
|
||||
dawn::VertexAttributeDescriptor vertexAttribute;
|
||||
@@ -35,7 +35,7 @@ namespace utils {
|
||||
for (uint32_t i = 0; i < kMaxVertexBuffers; ++i) {
|
||||
cBuffers[i].stride = 0;
|
||||
cBuffers[i].stepMode = dawn::InputStepMode::Vertex;
|
||||
cBuffers[i].numAttributes = 0;
|
||||
cBuffers[i].attributeCount = 0;
|
||||
cBuffers[i].attributes = nullptr;
|
||||
}
|
||||
// cBuffers[i].attributes points to somewhere in cAttributes. cBuffers[0].attributes
|
||||
|
||||
Reference in New Issue
Block a user