File tree Expand file tree Collapse file tree
09_depth_render_targets/sources
12_set_render_target_depth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fun pix(input: vertex_out): float4 {
3838struct pipeline {
3939 vertex = pos;
4040 fragment = pix;
41- depth_stencil_format = TEXTURE_FORMAT_DEPTH32FLOAT ;
41+ depth_stencil_format = TEXTURE_FORMAT_DEPTH32_FLOAT ;
4242 depth_write = true;
4343 depth_compare = COMPARE_LESS;
4444 format = framebuffer_format();
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ static void update(void *data) {
204204 kore_gpu_texture_destroy (& depth );
205205
206206 const kore_gpu_texture_parameters texture_parameters = {
207- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
207+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
208208 .width = framebuffer -> width ,
209209 .height = framebuffer -> height ,
210210 .depth_or_array_layers = 1 ,
@@ -282,7 +282,7 @@ int kickstart(int argc, char **argv) {
282282 kore_gpu_device_create_command_list (& device , KORE_GPU_COMMAND_LIST_TYPE_GRAPHICS , & list );
283283
284284 kore_gpu_texture_parameters texture_params = {
285- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
285+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
286286 .width = width ,
287287 .height = height ,
288288 .depth_or_array_layers = 1 ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fun pix(input: vertex_out): float4 {
4141struct pipeline {
4242 vertex = pos;
4343 fragment = pix;
44- depth_stencil_format = TEXTURE_FORMAT_DEPTH32FLOAT ;
44+ depth_stencil_format = TEXTURE_FORMAT_DEPTH32_FLOAT ;
4545 depth_write = true;
4646 depth_compare = COMPARE_LESS;
4747 format = framebuffer_format();
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ static void update(void *data) {
228228 kore_gpu_texture_destroy (& depth );
229229
230230 const kore_gpu_texture_parameters texture_parameters = {
231- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
231+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
232232 .width = framebuffer -> width ,
233233 .height = framebuffer -> height ,
234234 .depth_or_array_layers = 1 ,
@@ -307,7 +307,7 @@ int kickstart(int argc, char **argv) {
307307
308308 {
309309 kore_gpu_texture_parameters texture_params = {
310- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
310+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
311311 .width = width ,
312312 .height = height ,
313313 .depth_or_array_layers = 1 ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fun pix(input: vertex_out): float4 {
4141struct pipeline {
4242 vertex = pos;
4343 fragment = pix;
44- depth_stencil_format = TEXTURE_FORMAT_DEPTH32FLOAT ;
44+ depth_stencil_format = TEXTURE_FORMAT_DEPTH32_FLOAT ;
4545 depth_write = true;
4646 depth_compare = COMPARE_LESS;
4747 format = framebuffer_format();
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ static void update(void *data) {
317317 kore_gpu_texture_destroy (& depth );
318318
319319 const kore_gpu_texture_parameters texture_parameters = {
320- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
320+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
321321 .width = framebuffer -> width ,
322322 .height = framebuffer -> height ,
323323 .depth_or_array_layers = 1 ,
@@ -411,7 +411,7 @@ int kickstart(int argc, char **argv) {
411411
412412 {
413413 kore_gpu_texture_parameters texture_params = {
414- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
414+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
415415 .width = width ,
416416 .height = height ,
417417 .depth_or_array_layers = 1 ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ static void update(void *data) {
3030 kore_gpu_texture_destroy (& render_target );
3131
3232 const kore_gpu_texture_parameters texture_parameters = {
33- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
33+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
3434 .width = framebuffer -> width ,
3535 .height = framebuffer -> height ,
3636 .depth_or_array_layers = 1 ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ fun pixel(input: vertex_out): float4 {
2121struct pipeline {
2222 vertex = pos;
2323 fragment = pixel;
24- depth_stencil_format = TEXTURE_FORMAT_DEPTH32FLOAT ;
24+ depth_stencil_format = TEXTURE_FORMAT_DEPTH32_FLOAT ;
2525 depth_write = true;
2626 depth_compare = COMPARE_LESS;
2727}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ static void update(void *data) {
3131 kore_gpu_texture_destroy (& target_depth );
3232
3333 const kore_gpu_texture_parameters texture_parameters = {
34- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
34+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
3535 .width = framebuffer -> width ,
3636 .height = framebuffer -> height ,
3737 .depth_or_array_layers = 1 ,
@@ -128,7 +128,7 @@ int kickstart(int argc, char **argv) {
128128 kore_gpu_device_create_command_list (& device , KORE_GPU_COMMAND_LIST_TYPE_GRAPHICS , & list );
129129
130130 kore_gpu_texture_parameters texture_params = {
131- .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32FLOAT ,
131+ .format = KORE_GPU_TEXTURE_FORMAT_DEPTH32_FLOAT ,
132132 .width = width ,
133133 .height = height ,
134134 .depth_or_array_layers = 1 ,
You can’t perform that action at this time.
0 commit comments