gpu: move TextureComponentType -> Texture.ComponentType
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b02dbb2f03
commit
23aad28093
3 changed files with 8 additions and 9 deletions
|
|
@ -148,6 +148,13 @@ pub const Aspect = enum(u32) {
|
|||
plane1_only = 0x00000004,
|
||||
};
|
||||
|
||||
pub const ComponentType = enum(u32) {
|
||||
float = 0x00000000,
|
||||
sint = 0x00000001,
|
||||
uint = 0x00000002,
|
||||
depth_comparison = 0x00000003,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
|
|
@ -156,4 +163,5 @@ test "syntax" {
|
|||
_ = Usage;
|
||||
_ = Format;
|
||||
_ = Aspect;
|
||||
_ = ComponentType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,13 +203,6 @@ pub const StoreOp = enum(u32) {
|
|||
discard = 0x00000002,
|
||||
};
|
||||
|
||||
pub const TextureComponentType = enum(u32) {
|
||||
float = 0x00000000,
|
||||
sint = 0x00000001,
|
||||
uint = 0x00000002,
|
||||
depth_comparison = 0x00000003,
|
||||
};
|
||||
|
||||
pub const TextureDimension = enum(u32) {
|
||||
dimension_1d = 0x00000000,
|
||||
dimension_2d = 0x00000001,
|
||||
|
|
@ -343,7 +336,6 @@ test "syntax" {
|
|||
_ = StencilOperation;
|
||||
_ = StorageTextureAccess;
|
||||
_ = StoreOp;
|
||||
_ = TextureComponentType;
|
||||
_ = TextureDimension;
|
||||
_ = TextureSampleType;
|
||||
_ = TextureViewDimension;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,6 @@ pub const StencilOperation = @import("enums.zig").StencilOperation;
|
|||
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||
pub const StoreOp = @import("enums.zig").StoreOp;
|
||||
// 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;
|
||||
pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue