gpu: make swapChainGetCurrentTextureView() return value optional
This commit is contained in:
parent
eefe74fc06
commit
b45ad53a11
5 changed files with 8 additions and 8 deletions
|
|
@ -117,7 +117,7 @@ pub fn update(app: *App) !bool {
|
|||
std.log.err("Something went wrong when attempting to stat file: {}\n", .{err});
|
||||
}
|
||||
|
||||
const back_buffer_view = app.core.swapChain().getCurrentTextureView();
|
||||
const back_buffer_view = app.core.swapChain().getCurrentTextureView().?;
|
||||
const color_attachment = gpu.RenderPassColorAttachment{
|
||||
.view = back_buffer_view,
|
||||
.clear_value = std.mem.zeroes(gpu.Color),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue