Graphics Reference
In-Depth Information
Storage can be read and written to.
__pixel_localEXT
Storage can be read from.
__pixel_local_inEXT
__pixel_local_outEXT
Storage can be written to.
Tab l e 3. 3. Qualifiers for declaring the pixel local storage.
__pixel_localEXT FragLocalData
{ highp uint v0 ;
highp uint v1 ;
highp uint v2 ;
highp uint v3 ;
}
Storage ;
Listing 3.4. Declaring a pixel local storage.
3.3.3 Layout Qualifiers
Layout qualifiers describe how the variable data is laid out in the underlying stor-
age. Currently supported layout qualifiers are listed in Table 3.4. For a complete
list of supported qualifiers, please see the extension specification [Khronos 14].
An implicit data conversion occurs when reading from or writing to a pixel
local variable. When declaring a variable with a layout qualifier, the variable base
type and number of components must match that of the qualifier; otherwise, a
compiler error is produced.
Listings 3.5, 3.6, and 3.7 show some sample declarations using different data
types.
Layout
Base Type
uint (default)
r32ui
r11f_g11f_b10f
vec3
float
r32f
vec2
rg16f
rgb10_a2
vec4
vec4
rgba8
vec2
rg16
rgba8i
ivec4
ivec2
rg16i
uvec4
rgb10_a2ui
uvec4
rgba8ui
uvec2
rg16ui
Tab l e 3. 4. Supported layout qualifiers.
Search WWH ::




Custom Search