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,
|
depth_comparison = 0x00000003,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const Dimension = enum(u32) {
|
||||||
|
dimension_1d = 0x00000000,
|
||||||
|
dimension_2d = 0x00000001,
|
||||||
|
dimension_3d = 0x00000002,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = VTable;
|
_ = VTable;
|
||||||
_ = reference;
|
_ = reference;
|
||||||
|
|
@ -164,4 +170,5 @@ test "syntax" {
|
||||||
_ = Format;
|
_ = Format;
|
||||||
_ = Aspect;
|
_ = Aspect;
|
||||||
_ = ComponentType;
|
_ = ComponentType;
|
||||||
|
_ = Dimension;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -203,12 +203,6 @@ pub const StoreOp = enum(u32) {
|
||||||
discard = 0x00000002,
|
discard = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const TextureDimension = enum(u32) {
|
|
||||||
dimension_1d = 0x00000000,
|
|
||||||
dimension_2d = 0x00000001,
|
|
||||||
dimension_3d = 0x00000002,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const TextureSampleType = enum(u32) {
|
pub const TextureSampleType = enum(u32) {
|
||||||
none = 0x00000000,
|
none = 0x00000000,
|
||||||
float = 0x00000001,
|
float = 0x00000001,
|
||||||
|
|
@ -336,7 +330,6 @@ test "syntax" {
|
||||||
_ = StencilOperation;
|
_ = StencilOperation;
|
||||||
_ = StorageTextureAccess;
|
_ = StorageTextureAccess;
|
||||||
_ = StoreOp;
|
_ = StoreOp;
|
||||||
_ = TextureDimension;
|
|
||||||
_ = TextureSampleType;
|
_ = TextureSampleType;
|
||||||
_ = TextureViewDimension;
|
_ = TextureViewDimension;
|
||||||
_ = VertexFormat;
|
_ = VertexFormat;
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,6 @@ pub const StencilOperation = @import("enums.zig").StencilOperation;
|
||||||
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||||
pub const StoreOp = @import("enums.zig").StoreOp;
|
pub const StoreOp = @import("enums.zig").StoreOp;
|
||||||
// TODO: move to Texture.Foo
|
// TODO: move to Texture.Foo
|
||||||
pub const TextureDimension = @import("enums.zig").TextureDimension;
|
|
||||||
pub const TextureSampleType = @import("enums.zig").TextureSampleType;
|
pub const TextureSampleType = @import("enums.zig").TextureSampleType;
|
||||||
pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
|
pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
|
||||||
pub const VertexFormat = @import("enums.zig").VertexFormat;
|
pub const VertexFormat = @import("enums.zig").VertexFormat;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue