+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "Enums11.h"\r
-#include "VertexBufferBinding11.h"\r
-\r
-using System::Runtime::InteropServices::OutAttribute;\r
-\r
-namespace SlimDX\r
-{\r
- namespace Direct3D11\r
- {\r
- ref class Buffer;\r
- ref class InputLayout;\r
- \r
- /// <summary>\r
- /// Defines a wrapper for input assembler related commands on the device.\r
- /// </summary>\r
- public ref class InputAssemblerWrapper\r
- {\r
- private:\r
- ID3D11DeviceContext* deviceContext;\r
- \r
- internal:\r
- InputAssemblerWrapper( ID3D11DeviceContext* device );\r
- \r
- public:\r
- /// <summary>\r
- /// Gets or sets the layout of the input data currently bound to the input assembler.\r
- /// </summary>\r
- property InputLayout^ InputLayout\r
- {\r
- Direct3D11::InputLayout^ get();\r
- void set( Direct3D11::InputLayout^ value );\r
- }\r
-\r
- /// <summary>\r
- /// Gets or sets the topology of primitive data bound to the input assembler.\r
- /// </summary>\r
- property PrimitiveTopology PrimitiveTopology\r
- {\r
- Direct3D11::PrimitiveTopology get();\r
- void set( Direct3D11::PrimitiveTopology value );\r
- }\r
- \r
- /// <summary>\r
- /// Binds an index buffer to the input assembler.\r
- /// </summary>\r
- /// <param name="indexBuffer">The index buffer to bind.</param>\r
- /// <param name="format">The format of the data in the index buffer.</param>\r
- /// <param name="offset">The offset in bytes from the start of the index buffer to the first index to use.</param>\r
- void SetIndexBuffer( Buffer^ indexBuffer, DXGI::Format format, int offset );\r
-\r
- /// <summary>\r
- /// Gets the index buffer currently bound to the input assembler.\r
- /// </summary>\r
- /// <param name="indexBuffer">When the method completes, contains the currently bound index buffer.</param>\r
- /// <param name="format">When the method completes, contains the format of the data in the index buffer.</param>\r
- /// <param name="offset">When the method completes, contains the offset in bytes from the start of the index buffer to the first index to use.</param>\r
- void GetIndexBuffer( [Out] Buffer^ %indexBuffer, [Out] DXGI::Format %format, [Out] int %offset );\r
- \r
- /// <summary>\r
- /// Binds a single vertex buffer to the input assembler.\r
- /// </summary>\r
- /// <param name="slot">Index of the slot to which to bind the vertex buffer.</param>\r
- /// <param name="vertexBufferBinding">A binding for the input vertex buffer.</param>\r
- void SetVertexBuffers( int slot, VertexBufferBinding vertexBufferBinding );\r
-\r
- /// <summary>\r
- /// Binds an array of vertex buffers to the input assembler.\r
- /// </summary>\r
- /// <param name="firstSlot">Index of the first input slot to use for binding. The first vertex buffer is explicitly bound to the start slot; this causes each additional vertex buffer in the array to be implicitly bound to each subsequent input slot. There are 16 input slots.</param>\r
- /// <param name="vertexBufferBindings">An array of bindings for input vertex buffers.</param>\r
- void SetVertexBuffers( int firstSlot, ... array<VertexBufferBinding>^ vertexBufferBindings );\r
-\r
- /// <summary>\r
- /// Gets the set of vertex buffers currently bound to the input assembler.\r
- /// </summary>\r
- /// <param name="firstSlot">The input slot of the first vertex buffer to get.</param>\r
- /// <param name="count">The number of vertex buffers to retrieve.</param>\r
- /// <returns>An array of bound vertex buffers.</returns>\r
- array<VertexBufferBinding>^ GetVertexBuffers( int firstSlot, int count );\r
- };\r
- }\r
-};
\ No newline at end of file