gpu: make swapChainGetCurrentTextureView() return value optional
This commit is contained in:
parent
eefe74fc06
commit
b45ad53a11
5 changed files with 8 additions and 8 deletions
|
|
@ -1157,8 +1157,8 @@ pub const Interface = struct {
|
|||
);
|
||||
}
|
||||
|
||||
pub inline fn swapChainGetCurrentTextureView(swap_chain: *gpu.SwapChain) *gpu.TextureView {
|
||||
return @ptrCast(*gpu.TextureView, procs.swapChainGetCurrentTextureView.?(@ptrCast(c.WGPUSwapChain, swap_chain)));
|
||||
pub inline fn swapChainGetCurrentTextureView(swap_chain: *gpu.SwapChain) ?*gpu.TextureView {
|
||||
return @ptrCast(?*gpu.TextureView, procs.swapChainGetCurrentTextureView.?(@ptrCast(c.WGPUSwapChain, swap_chain)));
|
||||
}
|
||||
|
||||
pub inline fn swapChainPresent(swap_chain: *gpu.SwapChain) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue