RenderTexture

Types

struct RenderTexture A 32 bit handle.

enum MSAA

typedef enum MSAA{
  MSAA_1x=1,
  MSAA_4x=4,
} MSAA;

enum RenderTextureFormat

typedef enum RenderTextureFormat{
  RenderTextureFormat_BGRA8Unorm      = 80,
  RenderTextureFormat_RGBA16Float  = 115,
} RenderTextureFormat;

enum DepthTextureFormat

typedef enum DepthTextureFormat{
  DepthTextureFormat_None=0,
  DepthTextureFormat_Depth32Float  = 252,
} DepthTextureFormat;

Creation & Destruction

RenderTexture_Create( void ) : RenderTexture
Creates a new render texture.

RenderTexture_Create( RenderTexture render_texture ) : void

Functions

RenderTexture_Exists( RenderTexture render_texture ) : bool

RenderTexture_Width( RenderTexture render_texture ) : uint32_t

RenderTexture_Height( RenderTexture render_texture ) : uint32_t

RenderTexture_MSAA( RenderTexture render_texture ) : MSAA
RenderTexture_Format( RenderTexture render_texture ) : RenderTextureFormat

RenderTexture_DepthFormat( RenderTexture render_texture ) : DepthTextureFormat

RenderTexture_AspectRatio( RenderTexture render_texture ) : float

RenderTexture_InvAspectRatio( RenderTexture render_texture ) : float

RenderTexture_ResolveColor( RenderTexture render_texture ) : bool

RenderTexture_ResolveDepth( RenderTexture render_texture ) : bool

RenderTexture_Color( RenderTexture render_texture ) : Texture

RenderTexture_Depth( RenderTexture render_texture ) : Texture

Methods

RenderTexture_Init(
RenderTexture render_texture,
uint32_t width,
uint32_t height,
MSAA msaa,
RenderTextureFormat color_format,
bool resolve_color,
DepthTextureFormat depth_format,
bool resolve_depth) : void