gpu: add ProgrammableStageDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
52c22e0ff2
commit
5a8585faa1
3 changed files with 9 additions and 8 deletions
|
|
@ -57,14 +57,6 @@ typedef struct WGPUDawnTogglesDeviceDescriptor {
|
|||
|
||||
|
||||
|
||||
typedef struct WGPUProgrammableStageDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
WGPUShaderModule module;
|
||||
char const * entryPoint;
|
||||
uint32_t constantCount;
|
||||
WGPUConstantEntry const * constants;
|
||||
} WGPUProgrammableStageDescriptor;
|
||||
|
||||
typedef struct WGPUTextureDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
|
|
|
|||
|
|
@ -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 ProgrammableStageDescriptor = @import("structs.zig").ProgrammableStageDescriptor;
|
||||
|
||||
// Enumerations
|
||||
pub const Feature = @import("enums.zig").Feature;
|
||||
|
|
|
|||
|
|
@ -57,6 +57,13 @@ pub const DepthStencilState = struct {
|
|||
depth_bias_clamp: f32,
|
||||
};
|
||||
|
||||
pub const ProgrammableStageDescriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
module: ShaderModule,
|
||||
entryPoint: [*:0]const u8,
|
||||
constants: []const ConstantEntry,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = CompilationMessage;
|
||||
_ = CompilationInfo;
|
||||
|
|
@ -64,4 +71,5 @@ test "syntax" {
|
|||
_ = PrimitiveState;
|
||||
_ = StorageTextureBindingLayout;
|
||||
_ = DepthStencilState;
|
||||
_ = ProgrammableStageDescriptor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue