+++ /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 "ShaderBytecode.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace Direct3D9\r
- {\r
- /// <summary>\r
- /// Represents a pixel shader.\r
- /// </summary>\r
- /// <unmanaged>IDirect3DPixelShader9</unmanaged>\r
- public ref class PixelShader : public ComObject\r
- {\r
- COMOBJECT(IDirect3DPixelShader9, PixelShader);\r
-\r
- ShaderBytecode^ m_function;\r
-\r
- public:\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="PixelShader"/> class.\r
- /// </summary>\r
- /// <param name="device">The device used to create the shader.</param>\r
- /// <param name="function">The shader function stream.</param>\r
- PixelShader( Device^ device, ShaderBytecode^ function );\r
-\r
- /// <summary>\r
- /// Releases all resources used by the <see cref="PixelShader"/>.\r
- /// </summary>\r
- virtual ~PixelShader() { delete m_function; }\r
-\r
- /// <summary>\r
- /// The maximum level of nesting of dynamic flow control instructions.\r
- /// </summary>\r
- literal int MaxDynamicFlowControlDepth = D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH;\r
-\r
- /// <summary>\r
- /// The minimum level of nesting of dynamic flow control instructions.\r
- /// </summary>\r
- literal int MinDynamicFlowControlDepth = D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH;\r
-\r
- /// <summary>\r
- /// The maximum number of temporary registers supported.\r
- /// </summary>\r
- literal int MaxTemps = D3DPS20_MAX_NUMTEMPS;\r
-\r
- /// <summary>\r
- /// The minimum number of temporary registers supported.\r
- /// </summary>\r
- literal int MinTemps = D3DPS20_MIN_NUMTEMPS;\r
-\r
- /// <summary>\r
- /// The maximum level of nesting of static flow control instructions.\r
- /// </summary>\r
- literal int MaxStaticFlowControlDepth = D3DPS20_MAX_STATICFLOWCONTROLDEPTH;\r
-\r
- /// <summary>\r
- /// The minimum level of nesting of static flow control instructions.\r
- /// </summary>\r
- literal int MinStaticFlowControlDepth = D3DPS20_MIN_STATICFLOWCONTROLDEPTH;\r
-\r
- /// <summary>\r
- /// The maximum number of instruction slots supported.\r
- /// </summary>\r
- literal int MaxInstructionSlots = D3DPS20_MAX_NUMINSTRUCTIONSLOTS;\r
-\r
- /// <summary>\r
- /// The minimum number of instructions slots supported.\r
- /// </summary>\r
- literal int MinInstructionSlots = D3DPS20_MIN_NUMINSTRUCTIONSLOTS;\r
-\r
- /// <summary>\r
- /// Gets the device associated with the shader.\r
- /// </summary>\r
- property SlimDX::Direct3D9::Device^ Device\r
- {\r
- SlimDX::Direct3D9::Device^ get();\r
- }\r
-\r
- /// <summary>\r
- /// Gets the shader function stream.\r
- /// </summary>\r
- property ShaderBytecode^ Function\r
- {\r
- ShaderBytecode^ get();\r
- }\r
- };\r
- }\r
-}\r