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
|
|
@ -23,7 +23,7 @@ fn init(game: *Mod, core: *mach.Core.Mod) !void {
|
|||
|
||||
// Color target describes e.g. the pixel format of the window we are rendering to.
|
||||
const color_target = gpu.ColorTargetState{
|
||||
.format = mach.core.descriptor.format,
|
||||
.format = core.get(core.state().main_window, .framebuffer_format).?,
|
||||
.blend = &blend,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue