gpu: implement ShaderModule methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c2dffd34a1
commit
e427dbc574
1 changed files with 14 additions and 8 deletions
|
|
@ -1,17 +1,23 @@
|
||||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
|
const CompilationInfoCallback = @import("types.zig").CompilationInfoCallback;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const ShaderModule = *opaque {
|
pub const ShaderModule = *opaque {
|
||||||
// TODO
|
pub inline fn getCompilationInfo(shader_module: ShaderModule, callback: CompilationInfoCallback, userdata: *anyopaque) void {
|
||||||
// pub inline fn shaderModuleGetCompilationInfo(shader_module: gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) void {
|
impl.shaderModuleGetCompilationInfo(shader_module, callback, userdata);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn setLabel(shader_module: ShaderModule, label: [*:0]const u8) void {
|
||||||
// pub inline fn shaderModuleSetLabel(shader_module: gpu.ShaderModule, label: [*:0]const u8) void {
|
impl.shaderModuleSetLabel(shader_module, label);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn reference(shader_module: ShaderModule) void {
|
||||||
// pub inline fn shaderModuleReference(shader_module: gpu.ShaderModule) void {
|
impl.shaderModuleReference(shader_module);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(shader_module: ShaderModule) void {
|
||||||
// pub inline fn shaderModuleRelease(shader_module: gpu.ShaderModule) void {
|
impl.shaderModuleRelease(shader_module);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ShaderModuleDescriptor = extern struct {
|
pub const ShaderModuleDescriptor = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue