diff --git a/Kinc b/Kinc index aef4037..00ddc7c 160000 --- a/Kinc +++ b/Kinc @@ -1 +1 @@ -Subproject commit aef40375878f5e62b7730e912da431b450ae25ee +Subproject commit 00ddc7c4af0db8103045417aa9b6967b9a71d081 diff --git a/Shader/Shaders/shaders.kong b/Shader/Shaders/shaders.kong index 10338b1..f63857f 100644 --- a/Shader/Shaders/shaders.kong +++ b/Shader/Shaders/shaders.kong @@ -23,4 +23,5 @@ fun pix(input: vertex_out): float4 { struct pipeline { vertex = pos; fragment = pix; + format = framebuffer_format(); } diff --git a/Shader/Sources/shader.c b/Shader/Sources/shader.c index 6e14738..f9986f3 100644 --- a/Shader/Sources/shader.c +++ b/Shader/Sources/shader.c @@ -34,7 +34,7 @@ static void update(void *data) { parameters.color_attachments[0].texture.texture = framebuffer; parameters.color_attachments[0].texture.array_layer_count = 1; parameters.color_attachments[0].texture.mip_level_count = 1; - parameters.color_attachments[0].texture.format = KOPE_G5_TEXTURE_FORMAT_BGRA8_UNORM; + parameters.color_attachments[0].texture.format = kope_g5_device_framebuffer_format(&device); parameters.color_attachments[0].texture.dimension = KOPE_G5_TEXTURE_VIEW_DIMENSION_2D; kope_g5_command_list_begin_render_pass(&list, ¶meters);