__XB_MemTime

Reads the shader cycle counter, as a way for a shader to obtain random values.

Syntax

uint __XB_MemTime()  

Return value

Type: uint 

Returns the count from the shader cycle counter.

Remarks

It is not meaningful to use the returned value to profile or measure a shader’s execution time; instead, PIX is recommended for profiling.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.