gpu: convert *opaque -> opaque for ShaderModule
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
397f2eb1c9
commit
2c1a8240c5
7 changed files with 21 additions and 21 deletions
|
|
@ -3,16 +3,16 @@ const FilterMode = @import("types.zig").FilterMode;
|
|||
const CompareFunction = @import("types.zig").CompareFunction;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const Sampler = *opaque {
|
||||
pub inline fn setLabel(sampler: Sampler, label: [*:0]const u8) void {
|
||||
pub const Sampler = opaque {
|
||||
pub inline fn setLabel(sampler: *Sampler, label: [*:0]const u8) void {
|
||||
Impl.samplerSetLabel(sampler, label);
|
||||
}
|
||||
|
||||
pub inline fn reference(sampler: Sampler) void {
|
||||
pub inline fn reference(sampler: *Sampler) void {
|
||||
Impl.samplerReference(sampler);
|
||||
}
|
||||
|
||||
pub inline fn release(sampler: Sampler) void {
|
||||
pub inline fn release(sampler: *Sampler) void {
|
||||
Impl.samplerRelease(sampler);
|
||||
}
|
||||
};
|
||||
|
|
@ -32,15 +32,15 @@ pub const SamplerBindingType = enum(u32) {
|
|||
|
||||
pub const SamplerBindingLayout = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
type: SamplerBindingType = .undef,
|
||||
type: *SamplerBindingType = .undef,
|
||||
};
|
||||
|
||||
pub const SamplerDescriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
address_mode_u: SamplerAddressMode = .clamp_to_edge,
|
||||
address_mode_v: SamplerAddressMode = .clamp_to_edge,
|
||||
address_mode_w: SamplerAddressMode = .clamp_to_edge,
|
||||
address_mode_u: *SamplerAddressMode = .clamp_to_edge,
|
||||
address_mode_v: *SamplerAddressMode = .clamp_to_edge,
|
||||
address_mode_w: *SamplerAddressMode = .clamp_to_edge,
|
||||
mag_filter: FilterMode = .nearest,
|
||||
min_filter: FilterMode = .nearest,
|
||||
mipmap_filter: FilterMode = .nearest,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue