gpu: move TextureAspect -> Texture.Aspect
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4750abfbde
commit
b02dbb2f03
3 changed files with 10 additions and 11 deletions
|
|
@ -140,6 +140,14 @@ pub const Format = enum(u32) {
|
|||
r8bg8biplanar420_unorm = 0x00000060,
|
||||
};
|
||||
|
||||
pub const Aspect = enum(u32) {
|
||||
all = 0x00000000,
|
||||
stencil_only = 0x00000001,
|
||||
depth_only = 0x00000002,
|
||||
plane0_only = 0x00000003,
|
||||
plane1_only = 0x00000004,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
|
|
@ -147,4 +155,5 @@ test "syntax" {
|
|||
_ = destroy;
|
||||
_ = Usage;
|
||||
_ = Format;
|
||||
_ = Aspect;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,14 +203,6 @@ pub const StoreOp = enum(u32) {
|
|||
discard = 0x00000002,
|
||||
};
|
||||
|
||||
pub const TextureAspect = enum(u32) {
|
||||
all = 0x00000000,
|
||||
stencil_only = 0x00000001,
|
||||
depth_only = 0x00000002,
|
||||
plane0_only = 0x00000003,
|
||||
plane1_only = 0x00000004,
|
||||
};
|
||||
|
||||
pub const TextureComponentType = enum(u32) {
|
||||
float = 0x00000000,
|
||||
sint = 0x00000001,
|
||||
|
|
@ -351,7 +343,6 @@ test "syntax" {
|
|||
_ = StencilOperation;
|
||||
_ = StorageTextureAccess;
|
||||
_ = StoreOp;
|
||||
_ = TextureAspect;
|
||||
_ = TextureComponentType;
|
||||
_ = TextureDimension;
|
||||
_ = TextureSampleType;
|
||||
|
|
|
|||
|
|
@ -86,7 +86,6 @@ pub const BlendState = @import("data.zig").BlendState;
|
|||
pub const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
|
||||
|
||||
// Data structures not ABI-compatible with webgpu.h
|
||||
pub const BindGroupEntry = @import("structs.zig").BindGroupEntry;
|
||||
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
||||
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
||||
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
|
||||
|
|
@ -120,7 +119,7 @@ pub const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestamp
|
|||
pub const StencilOperation = @import("enums.zig").StencilOperation;
|
||||
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||
pub const StoreOp = @import("enums.zig").StoreOp;
|
||||
pub const TextureAspect = @import("enums.zig").TextureAspect;
|
||||
// TODO: move to Texture.Foo
|
||||
pub const TextureComponentType = @import("enums.zig").TextureComponentType;
|
||||
pub const TextureDimension = @import("enums.zig").TextureDimension;
|
||||
pub const TextureSampleType = @import("enums.zig").TextureSampleType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue