const_buffer_engine_interface: Store component types

This is required for Vulkan. Sampling integer textures with float
handles is illegal.
This commit is contained in:
ReinUsesLisp 2020-02-29 05:02:27 -03:00
parent 1f4e8db223
commit 7a93d38e0f
4 changed files with 27 additions and 46 deletions

View file

@ -89,7 +89,7 @@ SamplerDescriptor KeplerCompute::AccessBindlessSampler(ShaderType stage, u64 con
const Texture::TextureHandle tex_handle{memory_manager.Read<u32>(tex_info_address)};
const Texture::FullTextureInfo tex_info = GetTextureInfo(tex_handle);
SamplerDescriptor result = SamplerDescriptor::FromTicTexture(tex_info.tic.texture_type.Value());
SamplerDescriptor result = SamplerDescriptor::FromTIC(tex_info.tic);
result.is_shadow.Assign(tex_info.tsc.depth_compare_enabled.Value());
return result;
}