gpu: add VertexAttribute
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ad03565ff5
commit
1069889ea6
3 changed files with 7 additions and 6 deletions
|
|
@ -392,12 +392,6 @@ typedef struct WGPURenderPassDepthStencilAttachment {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct WGPUVertexAttribute {
|
|
||||||
WGPUVertexFormat format;
|
|
||||||
uint64_t offset;
|
|
||||||
uint32_t shaderLocation;
|
|
||||||
} WGPUVertexAttribute;
|
|
||||||
|
|
||||||
typedef struct WGPUBlendState {
|
typedef struct WGPUBlendState {
|
||||||
WGPUBlendComponent color;
|
WGPUBlendComponent color;
|
||||||
WGPUBlendComponent alpha;
|
WGPUBlendComponent alpha;
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ pub const Color = @import("structs.zig").Color;
|
||||||
pub const Extent3D = @import("structs.zig").Extent3D;
|
pub const Extent3D = @import("structs.zig").Extent3D;
|
||||||
pub const Origin3D = @import("structs.zig").Origin3D;
|
pub const Origin3D = @import("structs.zig").Origin3D;
|
||||||
pub const StencilFaceState = @import("structs.zig").StencilFaceState;
|
pub const StencilFaceState = @import("structs.zig").StencilFaceState;
|
||||||
|
pub const VertexAttribute = @import("structs.zig").VertexAttribute;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -64,3 +64,9 @@ pub const StencilFaceState = extern struct {
|
||||||
depth_fail_op: StencilOperation,
|
depth_fail_op: StencilOperation,
|
||||||
pass_op: StencilOperation,
|
pass_op: StencilOperation,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const VertexAttribute = extern struct {
|
||||||
|
format: VertexFormat,
|
||||||
|
offset: u64,
|
||||||
|
shader_location: u32,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue