Closed
Description
HLSL currently allows much more flexible overloading of the select
function. The following is an example of a case that DXC supports which Clang does not.
typedef uint32_t4 uint32_t8[2];
export void filter(inout uint32_t4 output, uint32_t predicate, uint32_t value) {
output = select(uint4(0,1,2,3) == (uint4)predicate, value, output);
}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed