mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Update naming for vertex state
- VertexInputDescriptor -> VertexStateDescriptor - VertexBufferDescriptor -> VertexBufferLayoutDescriptor - VertexBufferDescriptor.stride -> .arrayStride - VertexAttributeDescriptor.offset no longer optional gpuweb PR: https://github.com/gpuweb/gpuweb/pull/469 Bug: dawn:22 Change-Id: I5431df4ba22cfbdb1bc81e6709e562cd736892a3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13100 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
c3284fa40e
commit
ae1f25fee8
@@ -117,11 +117,11 @@ TEST_F(WireArgumentTests, CStringArgument) {
|
||||
colorStateDescriptor.writeMask = WGPUColorWriteMask_All;
|
||||
|
||||
// Create the input state
|
||||
WGPUVertexInputDescriptor vertexInput;
|
||||
vertexInput.nextInChain = nullptr;
|
||||
vertexInput.indexFormat = WGPUIndexFormat_Uint32;
|
||||
vertexInput.bufferCount = 0;
|
||||
vertexInput.buffers = nullptr;
|
||||
WGPUVertexStateDescriptor vertexState;
|
||||
vertexState.nextInChain = nullptr;
|
||||
vertexState.indexFormat = WGPUIndexFormat_Uint32;
|
||||
vertexState.vertexBufferCount = 0;
|
||||
vertexState.vertexBuffers = nullptr;
|
||||
|
||||
// Create the rasterization state
|
||||
WGPURasterizationStateDescriptor rasterizationState;
|
||||
@@ -179,7 +179,7 @@ TEST_F(WireArgumentTests, CStringArgument) {
|
||||
pipelineDescriptor.sampleMask = 0xFFFFFFFF;
|
||||
pipelineDescriptor.alphaToCoverageEnabled = false;
|
||||
pipelineDescriptor.layout = layout;
|
||||
pipelineDescriptor.vertexInput = &vertexInput;
|
||||
pipelineDescriptor.vertexState = &vertexState;
|
||||
pipelineDescriptor.primitiveTopology = WGPUPrimitiveTopology_TriangleList;
|
||||
pipelineDescriptor.rasterizationState = &rasterizationState;
|
||||
pipelineDescriptor.depthStencilState = &depthStencilState;
|
||||
|
||||
@@ -90,11 +90,11 @@ TEST_F(WireOptionalTests, OptionalStructPointer) {
|
||||
colorStateDescriptor.writeMask = WGPUColorWriteMask_All;
|
||||
|
||||
// Create the input state
|
||||
WGPUVertexInputDescriptor vertexInput;
|
||||
vertexInput.nextInChain = nullptr;
|
||||
vertexInput.indexFormat = WGPUIndexFormat_Uint32;
|
||||
vertexInput.bufferCount = 0;
|
||||
vertexInput.buffers = nullptr;
|
||||
WGPUVertexStateDescriptor vertexState;
|
||||
vertexState.nextInChain = nullptr;
|
||||
vertexState.indexFormat = WGPUIndexFormat_Uint32;
|
||||
vertexState.vertexBufferCount = 0;
|
||||
vertexState.vertexBuffers = nullptr;
|
||||
|
||||
// Create the rasterization state
|
||||
WGPURasterizationStateDescriptor rasterizationState;
|
||||
@@ -154,7 +154,7 @@ TEST_F(WireOptionalTests, OptionalStructPointer) {
|
||||
pipelineDescriptor.sampleMask = 0xFFFFFFFF;
|
||||
pipelineDescriptor.alphaToCoverageEnabled = false;
|
||||
pipelineDescriptor.layout = layout;
|
||||
pipelineDescriptor.vertexInput = &vertexInput;
|
||||
pipelineDescriptor.vertexState = &vertexState;
|
||||
pipelineDescriptor.primitiveTopology = WGPUPrimitiveTopology_TriangleList;
|
||||
pipelineDescriptor.rasterizationState = &rasterizationState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user