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
|
|
@ -107,12 +107,6 @@ typedef struct WGPURenderPipelineDescriptor {
|
|||
|
||||
|
||||
|
||||
typedef struct WGPUConstantEntry {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * key;
|
||||
double value;
|
||||
} WGPUConstantEntry;
|
||||
|
||||
// TODO: Dawn-specific?
|
||||
typedef struct WGPUCopyTextureForBrowserOptions {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ pub const MultisampleState = @import("structs.zig").MultisampleState;
|
|||
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
|
||||
pub const StorageTextureBindingLayout = @import("structs.zig").StorageTextureBindingLayout;
|
||||
pub const DepthStencilState = @import("structs.zig").DepthStencilState;
|
||||
pub const ConstantEntry = @import("structs.zig").ConstantEntry;
|
||||
pub const ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
|
||||
|
||||
// Enumerations
|
||||
|
|
|
|||
|
|
@ -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