Open
Listed in
Description
- Implement
QuadAny
clang builtin,LinkQuadAny
clang builtin withhlsl_intrinsics.h
Add sema checks forQuadAny
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
Add codegen forQuadAny
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
Add codegen tests toclang/test/CodeGenHLSL/builtins/QuadAny.hlsl
Add sema tests toclang/test/SemaHLSL/BuiltIns/QuadAny-errors.hlsl
Create theint_dx_QuadAny
intrinsic inIntrinsicsDirectX.td
Create theDXILOpMapping
ofint_dx_QuadAny
to222
inDXIL.td
Create theQuadAny.ll
andQuadAny_errors.ll
tests inllvm/test/CodeGen/DirectX/
DirectX
DXIL Opcode | DXIL OpName | Shader Model | Shader Stages |
---|---|---|---|
222 | QuadVote | 6.7 | ('library', 'compute', 'amplification', 'mesh', 'pixel', 'node') |
SPIR-V
There is no support for QuadAny
when targeting SPIR-V.
NOTE: it is possible that this is incorrect. When working on this, the first thing to do is to determine if there really is no SPIR-V operation for this.
Test Case(s)
Example 1
//dxc QuadAny_test.hlsl -T lib_6_8 -enable-16bit-types -O0
export bool fn(bool p1) {
return QuadAny(p1);
}
HLSL:
Syntax
bool QuadAny(bool cond);
Type Description
Name | Template Type | Component Type | Size |
---|---|---|---|
ret | scalar | bool | 1 |
cond | scalar | bool | 1 |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 6.7 and higher shader models | yes |
Shader Stages
- Library Shader
- Compute Shader
- Amplification Shader
- Mesh Shader
- Pixel Shader
- Node Shader
See also
Metadata
Metadata
Assignees
Type
Projects
Status
Ready
Milestone
Relationships
Development
No branches or pull requests
Activity