Skip to content
Snippets Groups Projects

vkd3d-shader/hlsl: Always specify resource on intrinsic_tex().

Merged Francisco Casas requested to merge fcasas/vkd3d:fix_null_res into master
  1. May 01, 2023
    • Francisco Casas's avatar
      vkd3d-shader/hlsl: Always specify resource on intrinsic_tex(). · abb207fa
      Francisco Casas authored and Alexandre Julliard's avatar Alexandre Julliard committed
      Otherwise, in the added test, we get:
      
      vkd3d-compiler: vkd3d-shader/hlsl.c:452: hlsl_init_deref_from_index_chain: Assertion `chain' failed.
      
      because on the path that triggers the following error:
      
      E5002: Wrong type for argument 1 of 'tex3D': expected 'sampler' or 'sampler3D', but got 'sampler2D'.
      
      a NULL params.resource is passed to hlsl_new_resource_load() and
      then to hlsl_init_deref_from_index_chain().
      abb207fa
Loading