Skip to content

Latest commit

 

History

History
84 lines (51 loc) · 1.16 KB

printf.md

File metadata and controls

84 lines (51 loc) · 1.16 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
printf function
Submits a custom shader message to the information queue.
0c6c15fc-1da5-4a26-ade0-5a0489e4f564
printf function HLSL
apiref
printf
NA
reference
05/31/2018

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