ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_drw_texture_t Struct Reference

Texture parameters for ra8_drw_blit_textured_rect. More...

#include <ra8_drw.h>

Data Fields

uintptr_t base_addr
 TEXORIGIN – texel base.
uint16_t pitch_px
 TEXPITCH (texels per line).
uint16_t u_mask
 TEXMASK[15:0] (U mask).
uint16_t v_mask
 TEXMASK[31:16] (V mask).
ra8_drw_readformat_t format
 READFORMAT_H+L 4-bit value.
bool clamp_x
 CONTROL2.TEXTURECLAMPX.
bool clamp_y
 CONTROL2.TEXTURECLAMPY.
bool filter_x
 CONTROL2.TEXTUREFILTERX.
bool filter_y
 CONTROL2.TEXTUREFILTERY.
bool enable_clut
 CONTROL2.CLUTENABLE.
bool clut_565
 CONTROL2.CLUTFORMAT (RGB565).
bool enable_color_key
 CONTROL2.COLKEYENABLE.
uint32_t color_key_rgb
 COLKEY value (0x00RRGGBB).
bool enable_rle
 CONTROL2.RLEENABLE.
ra8_drw_rlepixel_t rle_pixel_width
 CONTROL2.RLEPIXELWIDTH.
uint8_t clut_offset
 TEXCLOFFSET CLOFFSET[7:0].

Detailed Description

Texture parameters for ra8_drw_blit_textured_rect.

Maps to TEXORIGIN, TEXPITCH, TEXMASK and the U/V limiter set (LUSTART, LUXADD, LUYADD, LVSTART{I,F}, LVXADDI, LVYADDI, LVYXADDF). HUM Ch 62.2.14.. 62.2.24 p 3700-3703.

Invariant
base_addr is at least 4-byte aligned.
pitch_px <= k_ra8_drw_max_texpitch_tx (HUM 62.2.15).

Definition at line 140 of file ra8_drw.h.

Field Documentation

◆ base_addr

uintptr_t ra8_drw_texture_t::base_addr

TEXORIGIN – texel base.

Definition at line 141 of file ra8_drw.h.

Referenced by ra8_drw_set_texture().

◆ clamp_x

bool ra8_drw_texture_t::clamp_x

CONTROL2.TEXTURECLAMPX.

Definition at line 146 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ clamp_y

bool ra8_drw_texture_t::clamp_y

CONTROL2.TEXTURECLAMPY.

Definition at line 147 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ clut_565

bool ra8_drw_texture_t::clut_565

CONTROL2.CLUTFORMAT (RGB565).

Definition at line 151 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ clut_offset

uint8_t ra8_drw_texture_t::clut_offset

TEXCLOFFSET CLOFFSET[7:0].

Definition at line 156 of file ra8_drw.h.

Referenced by ra8_drw_set_texture().

◆ color_key_rgb

uint32_t ra8_drw_texture_t::color_key_rgb

COLKEY value (0x00RRGGBB).

Definition at line 153 of file ra8_drw.h.

Referenced by ra8_drw_set_texture().

◆ enable_clut

bool ra8_drw_texture_t::enable_clut

CONTROL2.CLUTENABLE.

Definition at line 150 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ enable_color_key

bool ra8_drw_texture_t::enable_color_key

CONTROL2.COLKEYENABLE.

Definition at line 152 of file ra8_drw.h.

Referenced by internal_pack_texture_bits(), and ra8_drw_set_texture().

◆ enable_rle

bool ra8_drw_texture_t::enable_rle

CONTROL2.RLEENABLE.

Definition at line 154 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ filter_x

bool ra8_drw_texture_t::filter_x

CONTROL2.TEXTUREFILTERX.

Definition at line 148 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ filter_y

bool ra8_drw_texture_t::filter_y

CONTROL2.TEXTUREFILTERY.

Definition at line 149 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ format

ra8_drw_readformat_t ra8_drw_texture_t::format

READFORMAT_H+L 4-bit value.

Definition at line 145 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ pitch_px

uint16_t ra8_drw_texture_t::pitch_px

TEXPITCH (texels per line).

Definition at line 142 of file ra8_drw.h.

Referenced by ra8_drw_set_texture().

◆ rle_pixel_width

ra8_drw_rlepixel_t ra8_drw_texture_t::rle_pixel_width

CONTROL2.RLEPIXELWIDTH.

Definition at line 155 of file ra8_drw.h.

Referenced by internal_pack_texture_bits().

◆ u_mask

uint16_t ra8_drw_texture_t::u_mask

TEXMASK[15:0] (U mask).

Definition at line 143 of file ra8_drw.h.

Referenced by ra8_drw_set_texture().

◆ v_mask

uint16_t ra8_drw_texture_t::v_mask

TEXMASK[31:16] (V mask).

Definition at line 144 of file ra8_drw.h.

Referenced by ra8_drw_set_texture().


The documentation for this struct was generated from the following file: