Resources

Functions

inline ResourceClearValue make_clear_value(uint32_t r, uint32_t g, uint32_t b, uint32_t a)

Creates a ResourceClearValue object with the specified RGBA values.

Parameters:
  • r – The red component of the clear value.

  • g – The green component of the clear value.

  • b – The blue component of the clear value.

  • a – The alpha component of the clear value.

Returns:

The created ResourceClearValue object.

inline ResourceClearValue make_clear_value(int32_t r, int32_t g, int32_t b, int32_t a)

Creates a ResourceClearValue object with the specified RGBA values.

Parameters:
  • r – The red component of the clear value.

  • g – The green component of the clear value.

  • b – The blue component of the clear value.

  • a – The alpha component of the clear value.

Returns:

The created ResourceClearValue object.

inline ResourceClearValue make_clear_value(float r, float g, float b, float a)

Creates a ResourceClearValue object with the specified RGBA values.

Parameters:
  • r – The red component of the clear value.

  • g – The green component of the clear value.

  • b – The blue component of the clear value.

  • a – The alpha component of the clear value.

Returns:

The created ResourceClearValue object.

inline ResourceClearValue make_clear_value(float d, uint8_t s)

Creates a ResourceClearValue object with the specified Depth/Stencil values.

Parameters:
  • d – The depth component of the clear value.

  • s – The stencil component of the clear value.

Returns:

The created ResourceClearValue object.

union ResourceClearValue

Public Members

uint32_t asUint[4]
struct ResourceClearValue::[anonymous] [anonymous]
int32_t asInt[4]
struct ResourceClearValue::[anonymous] [anonymous]
float asFloat[4]
struct ResourceClearValue::[anonymous] [anonymous]
float asDepth
uint8_t asStencil
struct ResourceClearValue::[anonymous] [anonymous]