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>CreateInputLayout</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/VertexInputStage/Overview.html">VertexInputStage</a>::CreateInputLayout</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../../nnResult/Overview.html">nnResult</a> CreateInputLayout(
15     <a href="../../../../nn/gd/CTR/InputElementDescription/Overview.html">InputElementDescription</a> * inputElementDescs,
16     <a href="../../../../nn_types/u32.html">u32</a> numElements,
17     <a href="../../../../nn_types/u32.html">u32</a> * strides,
18     Shader * vertexShader,
19     InputLayout ** inputLayout
20);
21</pre>
22    </div>
23<h2>Parameters</h2>
24    <div class="section">
25      <table class="arguments">
26        <thead>
27          <tr>
28            <td width="15" />
29<th>Name</th>
30<td>Description</td>
31          </tr>
32        </thead>
33        <tr>
34<td>in</td>
35<th>inputElementDescs</th>
36<td>Sets a parameter for creating an input layout.</td>
37        </tr>
38        <tr>
39<td>in</td>
40<th>numElements</th>
41<td>Specifies the number of elements in the input layout. Up to 12 elements can be specified.</td>
42        </tr>
43        <tr>
44<td>in</td>
45<th>strides</th>
46<td>Specifies an array that specifies the size of each element.</td>
47        </tr>
48        <tr>
49<td>in</td>
50<th>vertexShader</th>
51<td>Specifies a pointer to a vertex shader object.</td>
52        </tr>
53        <tr>
54<td>out</td>
55<th>inputLayout</th>
56<td>Specifies the address storing a pointer to the created input layout object.</td>
57        </tr> </table>
58    </div>
59<h2>Return Values</h2>
60<div class="section">Returns the result of the operation. <br />
61      <table class="arguments">
62        <thead>
63          <tr>
64<th>Value</th>
65<td>Description</td>
66          </tr>
67        </thead>
68        <tr>
69<th><CODE>Result::IsSuccess</CODE></th>
70<td>Process was successful.</td>
71        </tr>
72        <tr>
73<th><CODE>ResultNullParameter</CODE></th>
74<td>NULL was specified in an argument other than <CODE>numElements</CODE>.</td>
75        </tr>
76        <tr>
77<th><CODE>ResultInvalidShaderUniformName</CODE></th>
78<td>The value of <CODE>numElements</CODE> is incorrect. Specify a value in the range from <CODE>0</CODE> to <CODE>12</CODE>. Or, the <a href="../../../../nn/gd/CTR/InputElementDescription/Overview.html"><CODE>InputElementDescription</CODE></a> parameter or the shader input element name is incorrect.</td>
79        </tr>
80        <tr>
81<th><CODE>ResultOutOfMemory</CODE></th>
82<td>Could not allocate memory.</td>
83        </tr>
84        <tr>
85<th><CODE>ResultInvalidParameter</CODE></th>
86<td>The parameter is invalid.</td>
87        </tr>
88        <tr>
89<th><CODE>ResultInvalidShaderOperation</CODE></th>
90<td><SPAN class="argument">numElements</SPAN> is invalid. Specify a value in the range from 1 to 12.</td>
91        </tr>
92        <tr>
93<th>ResultInputLayoutInvalidStreamSlots</th>
94<td>Input slots must start from <CODE>0</CODE> and be consecutive.</td>
95        </tr>
96      </table> </div>
97<h2>Description</h2>
98    <div class="section">
99<p>Creates an input layout.</p><!-- write here --></div>
100<h2>Revision History</h2>
101    <div class="section">
102      <dl class="history">
103        <dt>2011/02/17</dt>
104<dd>Initial version.<br />
105        </dd>
106      </dl>
107    </div>
108  <hr><p>CONFIDENTIAL</p></body>
109</html>