gpu: move TextureSampleType -> Texture.SampleType
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a34646e78d
commit
7271df966e
3 changed files with 10 additions and 11 deletions
|
|
@ -161,6 +161,15 @@ pub const Dimension = enum(u32) {
|
||||||
dimension_3d = 0x00000002,
|
dimension_3d = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const SampleType = enum(u32) {
|
||||||
|
none = 0x00000000,
|
||||||
|
float = 0x00000001,
|
||||||
|
unfilterable_float = 0x00000002,
|
||||||
|
depth = 0x00000003,
|
||||||
|
sint = 0x00000004,
|
||||||
|
uint = 0x00000005,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = VTable;
|
_ = VTable;
|
||||||
_ = reference;
|
_ = reference;
|
||||||
|
|
@ -171,4 +180,5 @@ test "syntax" {
|
||||||
_ = Aspect;
|
_ = Aspect;
|
||||||
_ = ComponentType;
|
_ = ComponentType;
|
||||||
_ = Dimension;
|
_ = Dimension;
|
||||||
|
_ = SampleType;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -203,15 +203,6 @@ pub const StoreOp = enum(u32) {
|
||||||
discard = 0x00000002,
|
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) {
|
pub const TextureViewDimension = enum(u32) {
|
||||||
dimension_none = 0x00000000,
|
dimension_none = 0x00000000,
|
||||||
dimension_1d = 0x00000001,
|
dimension_1d = 0x00000001,
|
||||||
|
|
@ -330,7 +321,6 @@ test "syntax" {
|
||||||
_ = StencilOperation;
|
_ = StencilOperation;
|
||||||
_ = StorageTextureAccess;
|
_ = StorageTextureAccess;
|
||||||
_ = StoreOp;
|
_ = StoreOp;
|
||||||
_ = TextureSampleType;
|
|
||||||
_ = TextureViewDimension;
|
_ = TextureViewDimension;
|
||||||
_ = VertexFormat;
|
_ = VertexFormat;
|
||||||
_ = VertexStepMode;
|
_ = VertexStepMode;
|
||||||
|
|
|
||||||
|
|
@ -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 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;
|
||||||
pub const VertexStepMode = @import("enums.zig").VertexStepMode;
|
pub const VertexStepMode = @import("enums.zig").VertexStepMode;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue