gpu: add ShaderModule.setLabel
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c90f22811d
commit
7c94856ed6
2 changed files with 10 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ pub const VTable = struct {
|
|||
release: fn (ptr: *anyopaque) void,
|
||||
// TODO:
|
||||
// WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata);
|
||||
// WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const * label);
|
||||
setLabel: fn (ptr: *anyopaque, label: [:0]const u8) void,
|
||||
};
|
||||
|
||||
pub inline fn reference(queue: ShaderModule) void {
|
||||
|
|
@ -21,6 +21,10 @@ pub inline fn release(queue: ShaderModule) void {
|
|||
queue.vtable.release(queue.ptr);
|
||||
}
|
||||
|
||||
pub inline fn setLabel(queue: ShaderModule, label: [:0]const u8) void {
|
||||
queue.vtable.setLabel(queue.ptr, label);
|
||||
}
|
||||
|
||||
pub const CodeTag = enum {
|
||||
spirv,
|
||||
wgsl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue