gpu: add VertexAttribute

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 14:58:32 -07:00 committed by Stephen Gutekanst
parent ad03565ff5
commit 1069889ea6
3 changed files with 7 additions and 6 deletions

View file

@ -392,12 +392,6 @@ typedef struct WGPURenderPassDepthStencilAttachment {
typedef struct WGPUVertexAttribute {
WGPUVertexFormat format;
uint64_t offset;
uint32_t shaderLocation;
} WGPUVertexAttribute;
typedef struct WGPUBlendState {
WGPUBlendComponent color;
WGPUBlendComponent alpha;

View file

@ -81,6 +81,7 @@ pub const Color = @import("structs.zig").Color;
pub const Extent3D = @import("structs.zig").Extent3D;
pub const Origin3D = @import("structs.zig").Origin3D;
pub const StencilFaceState = @import("structs.zig").StencilFaceState;
pub const VertexAttribute = @import("structs.zig").VertexAttribute;
// Enumerations
pub const Feature = @import("enums.zig").Feature;

View file

@ -64,3 +64,9 @@ pub const StencilFaceState = extern struct {
depth_fail_op: StencilOperation,
pass_op: StencilOperation,
};
pub const VertexAttribute = extern struct {
format: VertexFormat,
offset: u64,
shader_location: u32,
};