|
| 1 | +--- |
| 2 | +import AutoStarlightPage from "@src/components/AutoStarlightPage.astro"; |
| 3 | +import { Code } from "@astrojs/starlight/components"; |
| 4 | +import { getSeeAlsoLinksFromList } from "@src/utils/general"; |
| 5 | +import SeeAlsoSection from "@src/components/SeeAlsoSection.astro"; |
| 6 | +--- |
| 7 | + |
| 8 | +<AutoStarlightPage |
| 9 | + frontmatter={{ |
| 10 | + template: "doc", |
| 11 | + title: "Surface formats", |
| 12 | + tableOfContents: false |
| 13 | + }} |
| 14 | +> |
| 15 | + <div id="_top"></div> |
| 16 | + |
| 17 | + <p> |
| 18 | + Based on: <a |
| 19 | + href="https://learn.microsoft.com/en-us/windows/win32/direct3d9/d3dformat" |
| 20 | + >this</a |
| 21 | + >. |
| 22 | + </p> |
| 23 | + |
| 24 | + <table> |
| 25 | + <thead> |
| 26 | + <th>Name</th> |
| 27 | + <th>Description</th> |
| 28 | + </thead> |
| 29 | + |
| 30 | + <tbody> |
| 31 | + <tr> |
| 32 | + <td>r8g8b8</td> |
| 33 | + <td |
| 34 | + >32-bit ARGB pixel format with alpha, using 8 bits per |
| 35 | + channel.</td |
| 36 | + > |
| 37 | + </tr> |
| 38 | + |
| 39 | + <tr> |
| 40 | + <td>a8r8g8b8</td> |
| 41 | + <td |
| 42 | + >32-bit ARGB pixel format with alpha, using 8 bits per |
| 43 | + channel.</td |
| 44 | + > |
| 45 | + </tr> |
| 46 | + |
| 47 | + <tr> |
| 48 | + <td>x8r8g8b8</td> |
| 49 | + <td |
| 50 | + >32-bit RGB pixel format, where 8 bits are reserved for each |
| 51 | + color.</td |
| 52 | + > |
| 53 | + </tr> |
| 54 | + |
| 55 | + <tr> |
| 56 | + <td>r5g6b5</td> |
| 57 | + <td |
| 58 | + >16-bit RGB pixel format with 5 bits for red, 6 bits for |
| 59 | + green, and 5 bits for blue.</td |
| 60 | + > |
| 61 | + </tr> |
| 62 | + |
| 63 | + <tr> |
| 64 | + <td>x1r5g5b5</td> |
| 65 | + <td |
| 66 | + >16-bit pixel format where 5 bits are reserved for each |
| 67 | + color.</td |
| 68 | + > |
| 69 | + </tr> |
| 70 | + |
| 71 | + <tr> |
| 72 | + <td>a1r5g5b5</td> |
| 73 | + <td |
| 74 | + >16-bit pixel format where 5 bits are reserved for each |
| 75 | + color and 1 bit is reserved for alpha.</td |
| 76 | + > |
| 77 | + </tr> |
| 78 | + |
| 79 | + <tr> |
| 80 | + <td>a4r4g4b4</td> |
| 81 | + <td>16-bit ARGB pixel format with 4 bits for each channel.</td> |
| 82 | + </tr> |
| 83 | + |
| 84 | + <tr> |
| 85 | + <td>r3g3b2</td> |
| 86 | + <td |
| 87 | + >8-bit RGB texture format using 3 bits for red, 3 bits for |
| 88 | + green, and 2 bits for blue.</td |
| 89 | + > |
| 90 | + </tr> |
| 91 | + |
| 92 | + <tr> |
| 93 | + <td>a8</td> |
| 94 | + <td>8-bit alpha only.</td> |
| 95 | + </tr> |
| 96 | + |
| 97 | + <tr> |
| 98 | + <td>a8r3g3b2</td> |
| 99 | + <td |
| 100 | + >16-bit ARGB texture format using 8 bits for alpha, 3 bits |
| 101 | + each for red and green, and 2 bits for blue.</td |
| 102 | + > |
| 103 | + </tr> |
| 104 | + |
| 105 | + <tr> |
| 106 | + <td>x4r4g4b4</td> |
| 107 | + <td>16-bit RGB pixel format using 4 bits for each color.</td> |
| 108 | + </tr> |
| 109 | + |
| 110 | + <tr> |
| 111 | + <td>a2b10g10r10</td> |
| 112 | + <td |
| 113 | + >32-bit pixel format using 10 bits for each color and 2 bits |
| 114 | + for alpha.</td |
| 115 | + > |
| 116 | + </tr> |
| 117 | + |
| 118 | + <tr> |
| 119 | + <td>a8b8g8r8</td> |
| 120 | + <td |
| 121 | + >32-bit ARGB pixel format with alpha, using 8 bits per |
| 122 | + channel.</td |
| 123 | + > |
| 124 | + </tr> |
| 125 | + |
| 126 | + <tr> |
| 127 | + <td>x8b8g8r8</td> |
| 128 | + <td |
| 129 | + >32-bit RGB pixel format, where 8 bits are reserved for each |
| 130 | + color.</td |
| 131 | + > |
| 132 | + </tr> |
| 133 | + |
| 134 | + <tr> |
| 135 | + <td>g16r16</td> |
| 136 | + <td |
| 137 | + >32-bit pixel format using 16 bits each for green and red.</td |
| 138 | + > |
| 139 | + </tr> |
| 140 | + |
| 141 | + <tr> |
| 142 | + <td>a2r10g10b10</td> |
| 143 | + <td |
| 144 | + >32-bit pixel format using 10 bits each for red, green, and |
| 145 | + blue, and 2 bits for alpha.</td |
| 146 | + > |
| 147 | + </tr> |
| 148 | + |
| 149 | + <tr> |
| 150 | + <td>a16b16g16r16</td> |
| 151 | + <td>64-bit pixel format using 16 bits for each component.</td> |
| 152 | + </tr> |
| 153 | + |
| 154 | + <tr> |
| 155 | + <td>a8p8</td> |
| 156 | + <td>8-bit color indexed with 8 bits of alpha.</td> |
| 157 | + </tr> |
| 158 | + |
| 159 | + <tr> |
| 160 | + <td>p8</td> |
| 161 | + <td>8-bit color indexed.</td> |
| 162 | + </tr> |
| 163 | + |
| 164 | + <tr> |
| 165 | + <td>l8</td> |
| 166 | + <td>8-bit luminance only.</td> |
| 167 | + </tr> |
| 168 | + |
| 169 | + <tr> |
| 170 | + <td>l16</td> |
| 171 | + <td>16-bit luminance only.</td> |
| 172 | + </tr> |
| 173 | + |
| 174 | + <tr> |
| 175 | + <td>a8l8</td> |
| 176 | + <td>16-bit using 8 bits each for alpha and luminance.</td> |
| 177 | + </tr> |
| 178 | + |
| 179 | + <tr> |
| 180 | + <td>r8g8b8</td> |
| 181 | + <td>24-bit RGB pixel format with 8 bits per channel.</td> |
| 182 | + </tr> |
| 183 | + |
| 184 | + <tr> |
| 185 | + <td>a4l4</td> |
| 186 | + <td>8-bit using 4 bits each for alpha and luminance.</td> |
| 187 | + </tr> |
| 188 | + |
| 189 | + <tr> |
| 190 | + <td>r16f</td> |
| 191 | + <td>16-bit float format using 16 bits for the red channel.</td> |
| 192 | + </tr> |
| 193 | + |
| 194 | + <tr> |
| 195 | + <td>g16r16f</td> |
| 196 | + <td>32-bit float format using 16 bits for the red channel and 16 bits for the green channel.</td> |
| 197 | + </tr> |
| 198 | + |
| 199 | + <tr> |
| 200 | + <td>a16b16g16r16f</td> |
| 201 | + <td>64-bit float format using 16 bits for the each channel (alpha, blue, green, red).</td> |
| 202 | + </tr> |
| 203 | + |
| 204 | + <tr> |
| 205 | + <td>r32f</td> |
| 206 | + <td>32-bit float format using 32 bits for the red channel.</td> |
| 207 | + </tr> |
| 208 | + |
| 209 | + <tr> |
| 210 | + <td>g32r32f</td> |
| 211 | + <td>64-bit float format using 32 bits for the red channel and 32 bits for the green channel.</td> |
| 212 | + </tr> |
| 213 | + |
| 214 | + <tr> |
| 215 | + <td>a32b32g32r32f</td> |
| 216 | + <td>128-bit float format using 32 bits for the each channel (alpha, blue, green, red).</td> |
| 217 | + </tr> |
| 218 | + </tbody> |
| 219 | + </table> |
| 220 | + |
| 221 | + <SeeAlsoSection |
| 222 | + seeAlsoLinks={getSeeAlsoLinksFromList([ |
| 223 | + "reference:dxCreateRenderTarget", |
| 224 | + ])} |
| 225 | + currentId="" |
| 226 | + /> |
| 227 | +</AutoStarlightPage> |
0 commit comments