feat(vulkan): add alpha test shader path
Docs Deploy / Build and Deploy MkDocs (push) Successful in 35s
Test / Lint (push) Failing after 1m59s
Test / Test (push) Skipped
Test / Render parity (push) Skipped

This commit is contained in:
2026-07-18 08:40:40 +04:00
parent 4b741fb19c
commit 4feada1bf4
12 changed files with 74 additions and 17 deletions
@@ -678,6 +678,14 @@ impl VulkanSmokeRenderer {
std::slice::from_ref(descriptor_set),
&[],
);
let alpha_cutoff = range.alpha_test_cutoff().to_ne_bytes();
device.device().cmd_push_constants(
command_buffer,
resources.pipeline_layout,
vk::ShaderStageFlags::FRAGMENT,
0,
&alpha_cutoff,
);
device.device().cmd_draw_indexed(
command_buffer,
range.index_count,