ReXGlue SDK
Loading...
Searching...
No Matches
rex::xenos::MemExportStream Union Reference

#include <rex/xenos/fetch.h>

Classes

struct  [struct].__unnamed0__
struct  [struct].__unnamed1__

Public Attributes

struct  
struct  

Detailed Description

Memory export stream constant.

A shader writes this constant plus an element offset to eA, usually with mad eA, r#, const0100, c#, then writes up to 5 elements to eM0 to eM4. Each field is packed as a normalized floating point number so the Xenos ALU does not flush it.

  • X holds the base address in dwords with 0b01 in the top 2 bits.
  • Y holds the element offset added to 2^23.
  • Z holds the format fields with an exponent of 23.
  • W holds the element count with an exponent of 23.

Exports are discarded if the index is above the maximum, the index sign bit is set, or the index exponent is not 23. Alloc instructions and serialize end the current export.


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