Sitelet https://github.com/gpuweb/gpuweb/pull/249/files
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ dictionary GPUDepthStencilStateDescriptor {
u32 stencilWriteMask = 0xFFFFFFFF;
};

// InputState
// Vertex Input

enum GPUIndexFormat {
"uint16",
Expand Down Expand Up @@ -506,23 +506,20 @@ enum GPUInputStepMode {
};

dictionary GPUVertexAttributeDescriptor {
required u32 shaderLocation;
required u32 inputSlot;
u64 offset = 0;
required GPUVertexFormat format;
required u32 shaderLocation;
};

dictionary GPUVertexInputDescriptor {
required u32 inputSlot;
dictionary GPUVertexBufferDescriptor {
required u64 stride;
GPUInputStepMode stepMode = "vertex";
required sequence<GPUVertexAttributeDescriptor> attributeSet;
};

dictionary GPUInputStateDescriptor {
dictionary GPUVertexInputDescriptor {
required GPUIndexFormat indexFormat;

required sequence<GPUVertexAttributeDescriptor> attributes;
required sequence<GPUVertexInputDescriptor> inputs;
required sequence<GPUVertexBufferDescriptor?> vertexBuffers;
};
</script>

Expand Down Expand Up @@ -573,7 +570,7 @@ dictionary GPURenderPipelineDescriptor : GPUPipelineDescriptorBase {
required GPURasterizationStateDescriptor rasterizationState;
required sequence<GPUColorStateDescriptor> colorStates;
GPUDepthStencilStateDescriptor? depthStencilState = null;
required GPUInputStateDescriptor inputState;
required GPUVertexInputDescriptor vertexInput;

// Number of MSAA samples
u32 sampleCount = 1;
Expand Down