gpu: make swapChainGetCurrentTextureView() return value optional
This commit is contained in:
parent
eefe74fc06
commit
b45ad53a11
5 changed files with 8 additions and 8 deletions
|
|
@ -140,7 +140,7 @@ fn frame(params: FrameParams) !void {
|
|||
pl.current_desc = pl.target_desc;
|
||||
}
|
||||
|
||||
const back_buffer_view = pl.swap_chain.?.getCurrentTextureView();
|
||||
const back_buffer_view = pl.swap_chain.?.getCurrentTextureView().?;
|
||||
const color_attachment = gpu.RenderPassColorAttachment{
|
||||
.view = back_buffer_view,
|
||||
.resolve_target = null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue