mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
microsoft/compiler: Emit samplers as array types
Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14624>
This commit is contained in:
parent
7502b08900
commit
8938c6e032
1 changed files with 1 additions and 0 deletions
|
|
@ -1192,6 +1192,7 @@ emit_sampler(struct ntd_context *ctx, nir_variable *var, unsigned count)
|
|||
resource_array_layout layout = {id, binding, count, var->data.descriptor_set};
|
||||
const struct dxil_type *int32_type = dxil_module_get_int_type(&ctx->mod, 32);
|
||||
const struct dxil_type *sampler_type = dxil_module_get_struct_type(&ctx->mod, "struct.SamplerState", &int32_type, 1);
|
||||
sampler_type = dxil_module_get_array_type(&ctx->mod, sampler_type, count);
|
||||
const struct dxil_mdnode *sampler_meta = emit_sampler_metadata(&ctx->mod, sampler_type, var, &layout);
|
||||
|
||||
if (!sampler_meta)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue