gpu: move TextureDimension -> Texture.Dimension
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
23aad28093
commit
a34646e78d
3 changed files with 7 additions and 8 deletions
|
|
@ -155,6 +155,12 @@ pub const ComponentType = enum(u32) {
|
|||
depth_comparison = 0x00000003,
|
||||
};
|
||||
|
||||
pub const Dimension = enum(u32) {
|
||||
dimension_1d = 0x00000000,
|
||||
dimension_2d = 0x00000001,
|
||||
dimension_3d = 0x00000002,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
|
|
@ -164,4 +170,5 @@ test "syntax" {
|
|||
_ = Format;
|
||||
_ = Aspect;
|
||||
_ = ComponentType;
|
||||
_ = Dimension;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,12 +203,6 @@ pub const StoreOp = enum(u32) {
|
|||
discard = 0x00000002,
|
||||
};
|
||||
|
||||
pub const TextureDimension = enum(u32) {
|
||||
dimension_1d = 0x00000000,
|
||||
dimension_2d = 0x00000001,
|
||||
dimension_3d = 0x00000002,
|
||||
};
|
||||
|
||||
pub const TextureSampleType = enum(u32) {
|
||||
none = 0x00000000,
|
||||
float = 0x00000001,
|
||||
|
|
@ -336,7 +330,6 @@ test "syntax" {
|
|||
_ = StencilOperation;
|
||||
_ = StorageTextureAccess;
|
||||
_ = StoreOp;
|
||||
_ = TextureDimension;
|
||||
_ = TextureSampleType;
|
||||
_ = TextureViewDimension;
|
||||
_ = VertexFormat;
|
||||
|
|
|
|||
|
|
@ -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 TextureDimension = @import("enums.zig").TextureDimension;
|
||||
pub const TextureSampleType = @import("enums.zig").TextureSampleType;
|
||||
pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
|
||||
pub const VertexFormat = @import("enums.zig").VertexFormat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue