gpu: add ConstantEntry
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
5a8585faa1
commit
79e80467ca
3 changed files with 8 additions and 6 deletions
|
|
@ -57,6 +57,12 @@ pub const DepthStencilState = struct {
|
|||
depth_bias_clamp: f32,
|
||||
};
|
||||
|
||||
// TODO: how does this map to browser API?
|
||||
pub const ConstantEntry = struct {
|
||||
key: [*:0]const u8,
|
||||
value: f64,
|
||||
};
|
||||
|
||||
pub const ProgrammableStageDescriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
module: ShaderModule,
|
||||
|
|
@ -71,5 +77,6 @@ test "syntax" {
|
|||
_ = PrimitiveState;
|
||||
_ = StorageTextureBindingLayout;
|
||||
_ = DepthStencilState;
|
||||
_ = ConstantEntry;
|
||||
_ = ProgrammableStageDescriptor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue