Field defaults in vulkan-zig
Ziggit
Field defaults in vulkan-zig
I started using Snektron/vulkan-zig for Vulkan again, but what I find very cumbersome is that most of the struct fields don’t have default values, and you have to set lots of nonsensical values that in C would be set implicitly through default initialization, for example const depth_stencil_state = vk.PipelineDepthStencilStateCreateInfo{ .depth_test_enable = .true, .depth_write_enable = .true, .depth_compare_op = .less_or_equal, .depth_bounds_test_enable = .false, .stencil_t...
0 comments
No comments yet.