You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Fix bug using Texture2D with alias template for SpirvType #6498
Description
For the (currently unmerged) SpirvType PR, Texture2D (and presumably other built-in types) cannot be used as an argument to an alias template for SpirvType
foo.hlsl:2:1: error: 'Texture2D<vector<float, 4> >' is an object and cannot be used as a type parameter
using Array = vk::SpirvOpaqueType</* OpTypeArray */ 28, SomeType, vk::integral_constant<uint, Length> >;
^
foo.hlsl:5:3: note: in instantiation of template type alias 'Array' requested here
Array<Texture2D, 4> image;
^
Activity
devshgraphicsprogramming commentedon Apr 19, 2024
This problem isn't limited to built-in types, its also when you put one vk::SpirvType inside another: https://godbolt.org/z/sxejh1q7W
its whats blocking my "user space solution" to #5092
[SPIR-V] Allow built-in object types as arguments to SpirvType
devshgraphicsprogramming commentedon Oct 12, 2024
another test case
https://tinyurl.com/mv3kehwp