Sitelet https://github.com/gpuweb/gpuweb/pull/92/files
Skip to content
Closed
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
13 changes: 7 additions & 6 deletions design/sketch.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ dictionary WebGPUShaderModuleDescriptor {
interface WebGPUShaderModule {
};

// AttachmentState
dictionary WebGPUAttachmentStateDescriptor {
// Description of the framebuffer attachments
dictionary WebGPUAttachmentsStateDescriptor {
sequence<WebGPUTextureFormatEnum> formats;
// TODO other stuff like sample count etc.
};

interface WebGPUAttachmentState {
interface WebGPUAttachmentsState {
};

// Common stuff for ComputePipeline and RenderPipeline
Expand Down Expand Up @@ -444,10 +444,10 @@ enum WebGPUPrimitiveTopology {

dictionary WebGPURenderPipelineDescriptor : WebGPUPipelineDescriptorBase {
WebGPUPrimitiveTopologyEnum primitiveTopology;
sequence<WebGPUBlendState> blendState;
sequence<WebGPUBlendState> blendStates;
WebGPUDepthStencilState depthStencilState;
WebGPUInputState inputState;
WebGPUAttachmentState attachmentState;
WebGPUAttachmentsState attachmentsState;
// TODO other properties
};

Expand Down Expand Up @@ -514,6 +514,7 @@ dictionary WebGPURenderPassDepthStencilAttachmentDescriptor {
};

dictionary WebGPURenderPassDescriptor {
WebGPUAttachmentsState attachmentsState;
sequence<WebGPURenderPassColorAttachmentDescriptor> colorAttachments;
WebGPURenderPassDepthStencilAttachmentDescriptor depthStencilAttachment;
};
Expand Down Expand Up @@ -628,7 +629,7 @@ interface WebGPUDevice {
WebGPUDepthStencilState createDepthStencilState(WebGPUDepthStencilStateDescriptor descriptor);
WebGPUInputState createInputState(WebGPUInputStateDescriptor descriptor);
WebGPUShaderModule createShaderModule(WebGPUShaderModuleDescriptor descriptor);
WebGPUAttachmentState createAttachmentState(WebGPUAttachmentStateDescriptor descriptor);
WebGPUAttachmentsState createAttachmentsState(WebGPUAttachmentsStateDescriptor descriptor);
WebGPUComputePipeline createComputePipeline(WebGPUComputePipelineDescriptor descriptor);
WebGPURenderPipeline createRenderPipeline(WebGPURenderPipelineDescriptor descriptor);

Expand Down