gpu: make swapChainGetCurrentTextureView() return value optional
This commit is contained in:
parent
eefe74fc06
commit
b45ad53a11
5 changed files with 8 additions and 8 deletions
|
|
@ -21,7 +21,7 @@ pub const SwapChain = opaque {
|
|||
Impl.swapChainConfigure(swap_chain, format, allowed_usage, width, height);
|
||||
}
|
||||
|
||||
pub inline fn getCurrentTextureView(swap_chain: *SwapChain) *TextureView {
|
||||
pub inline fn getCurrentTextureView(swap_chain: *SwapChain) ?*TextureView {
|
||||
return Impl.swapChainGetCurrentTextureView(swap_chain);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue