Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

printf function

Submits a custom shader message to the information queue.

Syntax

void printf(
  string format,
   argument ...
);

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.

Shader Model Supported
Shader Model 4 (DirectX HLSL) or later. yes

See also

Intrinsic Functions


Feedback

Was this page helpful?

Additional resources