Enabled depth clipping in SDL

This commit is contained in:
Zachary Levy
2026-08-17 20:12:16 -07:00
parent f1bf76e1be
commit 8d67d0777b
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -245,6 +245,7 @@ create_core_2d :: proc(device: ^sdl.GPUDevice, window: ^sdl.Window) -> (core_2d:
vertex_shader = vert_shader,
fragment_shader = frag_shader,
primitive_type = .TRIANGLELIST,
rasterizer_state = sdl.GPURasterizerState{enable_depth_clip = true},
multisample_state = sdl.GPUMultisampleState{sample_count = ._1},
target_info = sdl.GPUGraphicsPipelineTargetInfo {
color_target_descriptions = &sdl.GPUColorTargetDescription {