gpu: implement Sampler methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e427dbc574
commit
0351bce5b2
1 changed files with 10 additions and 6 deletions
|
|
@ -1,16 +1,20 @@
|
||||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
const FilterMode = @import("types.zig").FilterMode;
|
const FilterMode = @import("types.zig").FilterMode;
|
||||||
const CompareFunction = @import("types.zig").CompareFunction;
|
const CompareFunction = @import("types.zig").CompareFunction;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const Sampler = *opaque {
|
pub const Sampler = *opaque {
|
||||||
// TODO
|
pub inline fn setLabel(sampler: Sampler, label: [*:0]const u8) void {
|
||||||
// pub inline fn samplerSetLabel(sampler: gpu.Sampler, label: [*:0]const u8) void {
|
impl.samplerSetLabel(sampler, label);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn reference(sampler: Sampler) void {
|
||||||
// pub inline fn samplerReference(sampler: gpu.Sampler) void {
|
impl.samplerReference(sampler);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(sampler: Sampler) void {
|
||||||
// pub inline fn samplerRelease(sampler: gpu.Sampler) void {
|
impl.samplerRelease(sampler);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const SamplerAddressMode = enum(u32) {
|
pub const SamplerAddressMode = enum(u32) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue