You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Discussion : Per stage infos in render pipeline descriptor #109
2 - Having an array of sub-descriptor with the data for a shader stage, and "num shader stages". This is what the current sketch.idl does. Looks like this:
dictionary WebGPUPipelineStageDescriptor {
WebGPUShaderModule module;
WebGPUShaderStageEnum stage;
DOMString entryPoint;
// TODO other stuff like specialization constants?
};
dictionary WebGPURenderPipelineDescriptor {
u32 numShaderStages; // optional in WebGPU 1.0
sequence<WebGPUPipelineStageDescriptor> stages;
};
3 - Having a sub descriptor for each stage that's listed as a member of the RenderPipelineDescriptor directly. Looks like this:
dictionary WebGPUPipelineStageDescriptor {
WebGPUShaderModule module;
WebGPUShaderStageEnum stage;
DOMString entryPoint;
// TODO other stuff like specialization constants?
};
dictionary WebGPURenderPipelineDescriptor {
WebGPUPipelineStageDescriptor vertexStage;
WebGPUPipelineStageDescriptor fragmentStage;
};
4 - Having all members per stage directly in RenderPipelineDescriptor. Looks like this:
Thanks for the discussion! I don't expect WebGPU to have additional shader stages until after v1.0 (and even then probably in extensions at first), so the third approach is the most appealing right now.
I don't understand why numShaderStages would be needed, given that we have sequence telling the length. Maybe I'm missing something?
Anyhow, 👍 for the third variant.
@shaoboyan can we please discuss gpuweb issues in the context of a real WebIDL and not a specific implementation, unless explicitly noted? Just to avoid confusion.
Activity
Kangz commentedon Nov 7, 2018
Thanks for the discussion! I don't expect WebGPU to have additional shader stages until after v1.0 (and even then probably in extensions at first), so the third approach is the most appealing right now.
kvark commentedon Nov 7, 2018
I don't understand why
numShaderStageswould be needed, given that we havesequencetelling the length. Maybe I'm missing something?Anyhow, 👍 for the third variant.
shaoboyan commentedon Nov 13, 2018
@kvark it is not a real idl format for WebGPU :-) . For dawn project, we need this numShaderStages.
I'll take third variant and thx for your reviewing !
Kangz commentedon Nov 13, 2018
@shaoboyan since we seem to agree on that direction, do you mind making a pull-request that changes sketch.webidl?
kvark commentedon Nov 13, 2018
@shaoboyan can we please discuss
gpuwebissues in the context of a real WebIDL and not a specific implementation, unless explicitly noted? Just to avoid confusion.shaoboyan commentedon Nov 14, 2018
@kvark Sorry about that, modify the original description. I'll care about that.
@Kangz Ok, I'll make a pr for this.
Kangz commentedon Jan 17, 2019
The discussion has been resolved and the IDL updated. Closing this.
Selectively enable quiet-grunt to unbreak vscode grunt integration (g…