Resources

Enums

enum ResourceClearFlags

Bitfield of clear mode for resource.

Values:

enumerator RESOURCE_CLEAR_DEPTH

Clear depth only (for depth/stencil attachment)

enumerator RESOURCE_CLEAR_STENCIL

Clear stencil only (for depth/stencil attachment)

enumerator RESOURCE_CLEAR_ALL_CONTENT

Clear all content inside resource (for any kind of attachment)

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
#include <dag_resource.h>

Public Functions

inline bool operator==(const ResourceClearValue &other) const

Public Members

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