[vk] Added support for Stencil component type in texture handling

This commit is contained in:
CamilleLaVey 2025-11-27 20:34:14 -04:00 committed by Caio Oliveira
parent 459b26465e
commit 3117521da9
No known key found for this signature in database
GPG key ID: AAAE6C7FD4186B0C
3 changed files with 21 additions and 4 deletions

View file

@ -34,8 +34,9 @@ Id ComponentScalarType(EmitContext& ctx, SamplerComponentType component_type) {
case SamplerComponentType::Depth:
return ctx.F32[1];
case SamplerComponentType::Sint:
case SamplerComponentType::Stencil:
return ctx.S32[1];
case SamplerComponentType::Stencil:
return ctx.U32[1];
case SamplerComponentType::Uint:
return ctx.U32[1];
}