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>CopyTexture2DResourceLinearToBlock</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/gd/Overview.html">gd</a>::<a href="../../../../nn/gd/CTR/Overview.html">CTR</a>::<a href="../../../../nn/gd/CTR/Memory/Overview.html">Memory</a>::CopyTexture2DResourceLinearToBlock</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceLinearToBlock(
15     const Texture2DResource * source,
16     <a href="../../../../nn_types/s32.html">s32</a> srcMipLevelIndex,
17     <a href="../../../../nn_types/u32.html">u32</a> srcOffsetY,
18     <a href="../../../../nn_types/s32.html">s32</a> srcCountRow,
19     const Texture2DResource * dest,
20     <a href="../../../../nn_types/s32.html">s32</a> dstMipLevelIndex,
21     <a href="../../../../nn_types/u32.html">u32</a> dstOffestY
22);
23
24static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceLinearToBlock(
25     <a href="../../../../nn_types/u8.html">u8</a> * srcAddr,
26     <a href="../../../../nn_types/u32.html">u32</a> width,
27     <a href="../../../../nn_types/u32.html">u32</a> height,
28     const Texture2DResource * dest,
29     <a href="../../../../nn_types/s32.html">s32</a> dstMipLevelIndex,
30     <a href="../../../../nn_types/u32.html">u32</a> dstOffestY
31);
32</pre>
33    </div>
34<h2>List of Overloaded Member Functions</h2>
35    <div class="section">
36      <table class="members">
37        <tr>
38          <td>
39<a href="./CopyTexture2DResourceLinearToBlock(0).html"><CODE>CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 )</CODE> </a>
40          </td>
41<td>Adds a command for converting the source <SPAN class="Argument">Texture2DResource</SPAN> resource from a block image to a linear image and transferring it to the specified <SPAN class="Argument">Texture2DResource</SPAN> to the current command list. </td>
42        </tr>
43        <tr>
44          <td>
45<a href="./CopyTexture2DResourceLinearToBlock(1).html"><CODE>CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 )</CODE> </a>
46          </td>
47<td>Adds a command for converting the image at the specified address from a linear image to a block image and transferring it to the destination <SPAN class="Argument">Texture2DResource</SPAN> to the current command list.  </td>
48        </tr> </table>
49    </div>
50<h2>Description of CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 )</h2>
51<div class="section"><p>The following transfer source and destination pixel formats can be specified:<br /><itemizedlist><listitem><para>NATIVE_FORMAT_RGBA_8888 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGB_888 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGBA_4444 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGBA_5551 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGB_565 <br /></para></listitem></itemizedlist> The memory layout of the transfer source must be LAYOUT_LINEAR. The transfer destination memory layout must be either LAYOUT_BLOCK_8 or LAYOUT_BLOCK_32. If the pixel size of the transfer destination image is 24 bits, the horizontal width in pixels must be a multiple of 32. The width of the transfer source and destination resource must match.  This process calls the <CODE>nngxAddL2BTransferCommand</CODE> function. This function adds commands to the command list. Refer to the Programming Manual for details.</p><!-- write here --></div>
52<h2>Description of CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 )</h2>
53<div class="section"><p>The following transfer destination pixel formats can be specified:<br /><itemizedlist><listitem><para>NATIVE_FORMAT_RGBA_8888 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGB_888 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGBA_4444 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGBA_5551 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGB_565 <br /></para></listitem></itemizedlist> The memory layout of the transfer source must be LAYOUT_LINEAR. The transfer destination memory layout must be either LAYOUT_BLOCK_8 or LAYOUT_BLOCK_32. If the pixel size of the transfer destination image is 24 bits, the width must be a multiple of 32.  This process calls the <CODE>nngxAddL2BTransferCommand</CODE> function. This function adds commands to the command list. Refer to the Programming Manual for details.</p><!-- write here --></div>
54  <hr><p>CONFIDENTIAL</p></body>
55</html>