Core: store framebuffer information as components
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
656b0202f2
commit
03a089610b
5 changed files with 25 additions and 5 deletions
|
|
@ -281,7 +281,7 @@ fn buildPipeline(
|
|||
defer shader_module.release();
|
||||
|
||||
const color_target = opt_color_target_state orelse gpu.ColorTargetState{
|
||||
.format = mach.core.descriptor.format,
|
||||
.format = core.get(core.state().main_window, .framebuffer_format).?,
|
||||
.blend = &blend_state,
|
||||
.write_mask = gpu.ColorWriteMaskFlags.all,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue