Implement the printf
HLSL Function
#99140
Labels
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
printf
clang builtin,printf
clang builtin withhlsl_intrinsics.h
printf
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
printf
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/printf.hlsl
clang/test/SemaHLSL/BuiltIns/printf-errors.hlsl
int_spv_printf
intrinsic inIntrinsicsSPIRV.td
printf
lowering and map it toint_spv_printf
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/printf.ll
DirectX
There is no support for
printf
when targeting DirectX.SPIR-V
See "Using Debug Printf in HLSL Shaders" in https://vulkan.lunarg.com/doc/sdk/1.3.283.0/windows/debug_printf.html
Test Case(s)
Example 1
HLSL:
Submits a custom shader message to the information queue.
Syntax
Parameters
format
The format string.
argument ...
Optional arguments.
Return value
This function does not return a value.
Remarks
This operation does nothing on devices that do not support it.
Minimum Shader Model
This function is supported in the following shader models.
See also
Intrinsic Functions
The text was updated successfully, but these errors were encountered: