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
|
|
@ -2,20 +2,20 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
|||
const CompilationInfoCallback = @import("types.zig").CompilationInfoCallback;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const ShaderModule = *opaque {
|
||||
pub inline fn getCompilationInfo(shader_module: ShaderModule, callback: CompilationInfoCallback, userdata: *anyopaque) void {
|
||||
pub const ShaderModule = opaque {
|
||||
pub inline fn getCompilationInfo(shader_module: *ShaderModule, callback: CompilationInfoCallback, userdata: *anyopaque) void {
|
||||
Impl.shaderModuleGetCompilationInfo(shader_module, callback, userdata);
|
||||
}
|
||||
|
||||
pub inline fn setLabel(shader_module: ShaderModule, label: [*:0]const u8) void {
|
||||
pub inline fn setLabel(shader_module: *ShaderModule, label: [*:0]const u8) void {
|
||||
Impl.shaderModuleSetLabel(shader_module, label);
|
||||
}
|
||||
|
||||
pub inline fn reference(shader_module: ShaderModule) void {
|
||||
pub inline fn reference(shader_module: *ShaderModule) void {
|
||||
Impl.shaderModuleReference(shader_module);
|
||||
}
|
||||
|
||||
pub inline fn release(shader_module: ShaderModule) void {
|
||||
pub inline fn release(shader_module: *ShaderModule) void {
|
||||
Impl.shaderModuleRelease(shader_module);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue