gpu: move TextureSampleType -> Texture.SampleType

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 16:00:57 -07:00 committed by Stephen Gutekanst
parent a34646e78d
commit 7271df966e
3 changed files with 10 additions and 11 deletions

View file

@ -161,6 +161,15 @@ pub const Dimension = enum(u32) {
dimension_3d = 0x00000002,
};
pub const SampleType = enum(u32) {
none = 0x00000000,
float = 0x00000001,
unfilterable_float = 0x00000002,
depth = 0x00000003,
sint = 0x00000004,
uint = 0x00000005,
};
test "syntax" {
_ = VTable;
_ = reference;
@ -171,4 +180,5 @@ test "syntax" {
_ = Aspect;
_ = ComponentType;
_ = Dimension;
_ = SampleType;
}

View file

@ -203,15 +203,6 @@ pub const StoreOp = enum(u32) {
discard = 0x00000002,
};
pub const TextureSampleType = enum(u32) {
none = 0x00000000,
float = 0x00000001,
unfilterable_float = 0x00000002,
depth = 0x00000003,
sint = 0x00000004,
uint = 0x00000005,
};
pub const TextureViewDimension = enum(u32) {
dimension_none = 0x00000000,
dimension_1d = 0x00000001,
@ -330,7 +321,6 @@ test "syntax" {
_ = StencilOperation;
_ = StorageTextureAccess;
_ = StoreOp;
_ = TextureSampleType;
_ = TextureViewDimension;
_ = VertexFormat;
_ = VertexStepMode;

View file

@ -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 TextureSampleType = @import("enums.zig").TextureSampleType;
pub const TextureViewDimension = @import("enums.zig").TextureViewDimension;
pub const VertexFormat = @import("enums.zig").VertexFormat;
pub const VertexStepMode = @import("enums.zig").VertexStepMode;