1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>CtrTexFormat</title>
8  </head>
9  <body>
10<h1><CODE>nn::tpl::CTR::CtrTexFormat</CODE> Enumerated Type</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14enum CtrTexFormat;
15</pre>
16    </div>
17<h2>Value</h2>
18    <div class="section">
19      <table class="arguments">
20        <thead>
21          <tr>
22<th>Value</th>
23<td>Description</td>
24          </tr>
25        </thead>
26        <tr>
27<th>TEXFMT_RGBA8888</th>
28<td>R: 8 bits / G: 8 bits / B: 8 bits / A: 8 bits</td>
29        </tr>
30        <tr>
31<th>TEXFMT_RGB888</th>
32<td>R: 8 bits / G: 8 bits / B: 8 bits</td>
33        </tr>
34        <tr>
35<th>TEXFMT_RGBA5551</th>
36<td>R: 5 bits / G: 5 bits / B: 5 bits / A: 1 bits</td>
37        </tr>
38        <tr>
39<th>TEXFMT_RGB565</th>
40<td>R: 5 bits / G: 6 bits / B: 5 bits</td>
41        </tr>
42        <tr>
43<th>TEXFMT_RGBA4444</th>
44<td>R: 4 bits / G: 4 bits / B: 4 bits / A: 4 bits</td>
45        </tr>
46        <tr>
47<th>TEXFMT_LA88</th>
48<td>Luminance: 8 bits / Alpha: 8 bits</td>
49        </tr>
50        <tr>
51<th>TEXFMT_HL8</th>
52<td>R: 8 bits / G: 8 bits</td>
53        </tr>
54        <tr>
55<th>TEXFMT_L8</th>
56<td>Luminance: 8 bits</td>
57        </tr>
58        <tr>
59<th>TEXFMT_A8</th>
60<td>Alpha: 8 bits</td>
61        </tr>
62        <tr>
63<th>TEXFMT_LA44</th>
64<td>Luminance: 4 bits / Alpha: 4 bits</td>
65        </tr>
66        <tr>
67<th>TEXFMT_L4</th>
68<td>Luminance: 4 bits</td>
69        </tr>
70        <tr>
71<th>TEXFMT_A4</th>
72<td>Alpha: 4 bits</td>
73        </tr>
74        <tr>
75<th>TEXFMT_ETC1</th>
76<td>ETC1 compressed format</td>
77        </tr>
78        <tr>
79<th>TEXFMT_ETC1_A4</th>
80<td>ETC1 compressed format with alpha</td>
81        </tr>
82        <tr>
83<th>TEXFMT_SHADOW</th>
84<td>Shadow texture (<CODE>unsigned int</CODE>)</td>
85        </tr>
86        <tr>
87<th>TEXFMT_GAS</th>
88<td>Gas texture (<CODE>unsigned short</CODE>)</td>
89        </tr>
90        <tr>
91<th>TEXFMT_REF</th>
92<td>One-dimentional texture (<CODE>float</CODE>)</td>
93        </tr>
94        <tr>
95<th>TEXFMT_UNSUPPORT</th>
96<td>Identifier indicating an unsupported format.</td>
97        </tr>
98        <tr>
99<th>TEXFMT_ForceInt32</th>
100          <td>
101        </td>
102        </tr>
103      </table> </div>
104<h2>Description</h2>
105    <div class="section">
106<p>Enumerated type representing the GPU's texture format.</p><p>Values that can be set in the PICA registers (such as bits [3:0] of register <CODE>0x8e</CODE>) are defined by taking a bitwise OR with <CODE>0xf</CODE> for each format. (This does not apply to <CODE>TEXFMT_REF</CODE> and <CODE>TEXFMT_UNSUPPORT</CODE>.)</p><!-- write here --></div>
107<h2>Revision History</h2>
108    <div class="section">
109      <dl class="history">
110        <dt>2010/08/16</dt>
111<dd>Initial version.<br />
112        </dd>
113      </dl>
114    </div>
115  <hr><p>CONFIDENTIAL</p></body>
116</html>