gpu: add StorageTextureBindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
50e1151a72
commit
da4edf6e1d
3 changed files with 10 additions and 7 deletions
|
|
@ -204,13 +204,6 @@ typedef struct WGPUCopyTextureForBrowserOptions {
|
||||||
WGPUAlphaMode dstAlphaMode;
|
WGPUAlphaMode dstAlphaMode;
|
||||||
} WGPUCopyTextureForBrowserOptions;
|
} WGPUCopyTextureForBrowserOptions;
|
||||||
|
|
||||||
typedef struct WGPUStorageTextureBindingLayout {
|
|
||||||
WGPUChainedStruct const * nextInChain;
|
|
||||||
WGPUStorageTextureAccess access;
|
|
||||||
WGPUTextureFormat format;
|
|
||||||
WGPUTextureViewDimension viewDimension;
|
|
||||||
} WGPUStorageTextureBindingLayout;
|
|
||||||
|
|
||||||
typedef struct WGPUTextureBindingLayout {
|
typedef struct WGPUTextureBindingLayout {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
WGPUTextureSampleType sampleType;
|
WGPUTextureSampleType sampleType;
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ pub const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
|
||||||
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
pub const CompilationMessage = @import("structs.zig").CompilationMessage;
|
||||||
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
pub const MultisampleState = @import("structs.zig").MultisampleState;
|
||||||
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
|
pub const PrimitiveState = @import("structs.zig").PrimitiveState;
|
||||||
|
pub const StorageTextureBindingLayout = @import("structs.zig").StorageTextureBindingLayout;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
//! Structures which are not ABI compatible with webgpu.h
|
//! Structures which are not ABI compatible with webgpu.h
|
||||||
const Buffer = @import("Buffer.zig");
|
const Buffer = @import("Buffer.zig");
|
||||||
const Sampler = @import("Sampler.zig");
|
const Sampler = @import("Sampler.zig");
|
||||||
|
const Texture = @import("Texture.zig");
|
||||||
const TextureView = @import("TextureView.zig");
|
const TextureView = @import("TextureView.zig");
|
||||||
const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
const CompilationMessageType = @import("enums.zig").CompilationMessageType;
|
||||||
const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
|
const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
|
||||||
const IndexFormat = @import("enums.zig").IndexFormat;
|
const IndexFormat = @import("enums.zig").IndexFormat;
|
||||||
const FrontFace = @import("enums.zig").FrontFace;
|
const FrontFace = @import("enums.zig").FrontFace;
|
||||||
const CullMode = @import("enums.zig").CullMode;
|
const CullMode = @import("enums.zig").CullMode;
|
||||||
|
const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
|
||||||
|
|
||||||
pub const CompilationMessage = struct {
|
pub const CompilationMessage = struct {
|
||||||
message: [:0]const u8,
|
message: [:0]const u8,
|
||||||
|
|
@ -30,8 +32,15 @@ pub const PrimitiveState = struct {
|
||||||
cull_mode: CullMode,
|
cull_mode: CullMode,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const StorageTextureBindingLayout = struct {
|
||||||
|
access: StorageTextureAccess,
|
||||||
|
format: Texture.Format,
|
||||||
|
view_dimension: Texture.ViewDimension,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = CompilationMessage;
|
_ = CompilationMessage;
|
||||||
_ = MultisampleState;
|
_ = MultisampleState;
|
||||||
_ = PrimitiveState;
|
_ = PrimitiveState;
|
||||||
|
_ = StorageTextureBindingLayout;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue