gpu: add FragmentState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ec300679a0
commit
4aeea00409
3 changed files with 10 additions and 10 deletions
10
gpu/src/TODO
10
gpu/src/TODO
|
|
@ -99,16 +99,6 @@ typedef struct WGPUSupportedLimits {
|
||||||
WGPULimits limits;
|
WGPULimits limits;
|
||||||
} WGPUSupportedLimits;
|
} WGPUSupportedLimits;
|
||||||
|
|
||||||
typedef struct WGPUFragmentState {
|
|
||||||
WGPUChainedStruct const * nextInChain;
|
|
||||||
WGPUShaderModule module;
|
|
||||||
char const * entryPoint;
|
|
||||||
uint32_t constantCount;
|
|
||||||
WGPUConstantEntry const * constants;
|
|
||||||
uint32_t targetCount;
|
|
||||||
WGPUColorTargetState const * targets;
|
|
||||||
} WGPUFragmentState;
|
|
||||||
|
|
||||||
typedef struct WGPUExternalTextureBindingEntry {
|
typedef struct WGPUExternalTextureBindingEntry {
|
||||||
WGPUChainedStruct chain;
|
WGPUChainedStruct chain;
|
||||||
WGPUExternalTexture externalTexture;
|
WGPUExternalTexture externalTexture;
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ pub const RenderPassTimestampWrite = @import("structs.zig").RenderPassTimestampW
|
||||||
pub const RenderPassDepthStencilAttachment = @import("structs.zig").RenderPassDepthStencilAttachment;
|
pub const RenderPassDepthStencilAttachment = @import("structs.zig").RenderPassDepthStencilAttachment;
|
||||||
pub const RenderPassColorAttachment = @import("structs.zig").RenderPassColorAttachment;
|
pub const RenderPassColorAttachment = @import("structs.zig").RenderPassColorAttachment;
|
||||||
pub const VertexState = @import("structs.zig").VertexState;
|
pub const VertexState = @import("structs.zig").VertexState;
|
||||||
|
pub const FragmentState = @import("structs.zig").FragmentState;
|
||||||
|
|
||||||
// Enumerations
|
// Enumerations
|
||||||
pub const Feature = @import("enums.zig").Feature;
|
pub const Feature = @import("enums.zig").Feature;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ const ShaderModule = @import("ShaderModule.zig");
|
||||||
const QuerySet = @import("QuerySet.zig");
|
const QuerySet = @import("QuerySet.zig");
|
||||||
const StencilFaceState = @import("data.zig").StencilFaceState;
|
const StencilFaceState = @import("data.zig").StencilFaceState;
|
||||||
const Color = @import("data.zig").Color;
|
const Color = @import("data.zig").Color;
|
||||||
|
const VertexBufferLayout = @import("data.zig").VertexBufferLayout;
|
||||||
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;
|
||||||
|
|
@ -118,6 +119,13 @@ pub const VertexState = struct {
|
||||||
buffers: []const VertexBufferLayout,
|
buffers: []const VertexBufferLayout,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const FragmentState = struct {
|
||||||
|
module: ShaderModule,
|
||||||
|
entry_point: [*:0]const u8,
|
||||||
|
constants: []const ConstantEntry,
|
||||||
|
targets: []const ColorTargetState,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = CompilationMessage;
|
_ = CompilationMessage;
|
||||||
_ = CompilationInfo;
|
_ = CompilationInfo;
|
||||||
|
|
@ -132,4 +140,5 @@ test "syntax" {
|
||||||
_ = RenderPassDepthStencilAttachment;
|
_ = RenderPassDepthStencilAttachment;
|
||||||
_ = RenderPassColorAttachment;
|
_ = RenderPassColorAttachment;
|
||||||
_ = VertexState;
|
_ = VertexState;
|
||||||
|
_ = FragmentState;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue