Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb3f5db

Browse files
beaufortfrancoiskainino0x
authored andcommitted
Do not require vertexInput in GPURenderPipelineDescriptor (gpuweb#378)
1 parent 84f16ce commit cb3f5db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ dictionary GPURenderPipelineDescriptor : GPUPipelineDescriptorBase {
679679
GPURasterizationStateDescriptor rasterizationState;
680680
required sequence<GPUColorStateDescriptor> colorStates;
681681
GPUDepthStencilStateDescriptor depthStencilState;
682-
required GPUVertexInputDescriptor vertexInput;
682+
GPUVertexInputDescriptor vertexInput = {};
683683

684684
unsigned long sampleCount = 1;
685685
unsigned long sampleMask = 0xFFFFFFFF;
@@ -919,7 +919,7 @@ dictionary GPUVertexBufferDescriptor {
919919
<script type=idl>
920920
dictionary GPUVertexInputDescriptor {
921921
GPUIndexFormat indexFormat = "uint32";
922-
required sequence<GPUVertexBufferDescriptor?> vertexBuffers;
922+
sequence<GPUVertexBufferDescriptor?> vertexBuffers = [];
923923
};
924924
</script>
925925

0 commit comments

Comments
 (0)