Enabled depth clipping in SDL (#42)
Co-authored-by: Zachary Levy <zachary@sunforge.is> Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user