gpu: add constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
85041d6f93
commit
c045ce7caa
2 changed files with 10 additions and 23 deletions
23
gpu/src/TODO
23
gpu/src/TODO
|
|
@ -1,26 +1,3 @@
|
|||
#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (0xffffffffUL)
|
||||
#define WGPU_COPY_STRIDE_UNDEFINED (0xffffffffUL)
|
||||
#define WGPU_LIMIT_U32_UNDEFINED (0xffffffffUL)
|
||||
#define WGPU_LIMIT_U64_UNDEFINED (0xffffffffffffffffULL)
|
||||
#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (0xffffffffUL)
|
||||
#define WGPU_STRIDE_UNDEFINED (0xffffffffUL)
|
||||
#define WGPU_WHOLE_MAP_SIZE SIZE_MAX
|
||||
#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)
|
||||
|
||||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef struct WGPUChainedStruct {
|
||||
struct WGPUChainedStruct const * next;
|
||||
WGPUSType sType;
|
||||
} WGPUChainedStruct;
|
||||
|
||||
typedef struct WGPUChainedStructOut {
|
||||
struct WGPUChainedStructOut * next;
|
||||
WGPUSType sType;
|
||||
} WGPUChainedStructOut;
|
||||
|
||||
|
||||
|
||||
// TODO: Dawn specific
|
||||
typedef struct WGPUDawnCacheDeviceDescriptor {
|
||||
WGPUChainedStruct chain;
|
||||
|
|
|
|||
|
|
@ -142,6 +142,16 @@ pub const ColorWriteMask = @import("enums.zig").ColorWriteMask;
|
|||
pub const MapMode = @import("enums.zig").MapMode;
|
||||
pub const ShaderStage = @import("enums.zig").ShaderStage;
|
||||
|
||||
// Constants
|
||||
const array_layer_count_undefined: u32 = 0xffffffff;
|
||||
const copy_stride_undefined: u32 = 0xffffffff;
|
||||
const limit_u32_undefined: u32 = 0xffffffff;
|
||||
const limit_u64_undefined: u32 = 0xffffffffffffffff;
|
||||
const mip_level_count_undefined: u32 = 0xffffffff;
|
||||
const stride_undefined: u32 = 0xffffffff;
|
||||
const whole_map_size: u32 = std.math.maxInt(c_int);
|
||||
const whole_size: u64 = 0xffffffffffffffff;
|
||||
|
||||
test "syntax" {
|
||||
// Root interface/implementations
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue