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
|
|
@ -48,7 +48,7 @@ fn init(
|
|||
// Fragment state
|
||||
const blend = gpu.BlendState{};
|
||||
const color_target = gpu.ColorTargetState{
|
||||
.format = mach.core.descriptor.format,
|
||||
.format = core.get(core.state().main_window, .framebuffer_format).?,
|
||||
.blend = &blend,
|
||||
.write_mask = gpu.ColorWriteMaskFlags.all,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue