Skip to content

Commit

Permalink
Use framebuffer_format()
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 9, 2025
1 parent f2666f3 commit 64eaf3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kinc
Submodule Kinc updated from aef403 to 00ddc7
1 change: 1 addition & 0 deletions Shader/Shaders/shaders.kong
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ fun pix(input: vertex_out): float4 {
struct pipeline {
vertex = pos;
fragment = pix;
format = framebuffer_format();
}
2 changes: 1 addition & 1 deletion Shader/Sources/shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, &parameters);

Expand Down

0 comments on commit 64eaf3f

Please sign in to comment.