+++ /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
-namespace SlimDX\r
-{\r
- namespace Direct3D9\r
- {\r
- /// <summary>\r
- /// Represents a compiled shader designed to fill textures with image data.\r
- /// </summary>\r
- /// <unmanaged>ID3DXTextureShader</unmanaged>\r
- public ref class TextureShader : public ComObject\r
- {\r
- COMOBJECT(ID3DXTextureShader, TextureShader);\r
-\r
- public:\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="TextureShader"/> class.\r
- /// </summary>\r
- /// <param name="stream">A stream of compiled shader data.</param>\r
- TextureShader( DataStream^ stream );\r
-\r
- /// <summary>\r
- /// Gets a constant by looking up its index.\r
- /// </summary>\r
- /// <param name="parent">The parent handle.</param>\r
- /// <param name="index">The index of the constant.</param>\r
- /// <returns>A handle to the constant data.</returns>\r
- EffectHandle^ GetConstant( EffectHandle^ parent, int index );\r
-\r
- /// <summary>\r
- /// Gets a constant by looking up its name.\r
- /// </summary>\r
- /// <param name="parent">The parent handle.</param>\r
- /// <param name="name">The name of the constant.</param>\r
- /// <returns>A handle to the constant data.</returns>\r
- EffectHandle^ GetConstant( EffectHandle^ parent, System::String^ name );\r
-\r
- /// <summary>\r
- /// Gets a constant from the constant table.\r
- /// </summary>\r
- /// <param name="handle">The array handle.</param>\r
- /// <param name="index">The index of the constant.</param>\r
- /// <returns>A handle to the constant data.</returns>\r
- EffectHandle^ GetConstantElement( EffectHandle^ handle, int index );\r
-\r
- /// <summary>\r
- /// Gets a description for a constant.\r
- /// </summary>\r
- /// <param name="handle">The constant handle.</param>\r
- /// <returns>The description of the constant.</returns>\r
- ConstantDescription GetConstantDescription( EffectHandle^ handle );\r
-\r
- /// <summary>\r
- /// Gets a list of descriptions for an array constant.\r
- /// </summary>\r
- /// <param name="handle">The array handle.</param>\r
- /// <returns>The list of constant descriptions.</returns>\r
- array<ConstantDescription>^ GetConstantDescriptionArray( EffectHandle^ handle );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, bool value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, array<bool>^ values );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, int value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, array<int>^ values );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, float value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, array<float>^ values );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, Vector4 value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, array<Vector4>^ values );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, Color4 value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, array<Color4>^ values );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, Matrix value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValue( EffectHandle^ parameter, array<Matrix>^ values );\r
-\r
- /// <summary>\r
- /// Sets an effect parameter value.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="value">The parameter value.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValueTranspose( EffectHandle^ parameter, Matrix value );\r
-\r
- /// <summary>\r
- /// Sets an array of effect parameter values.\r
- /// </summary>\r
- /// <param name="parameter">The effect parameter.</param>\r
- /// <param name="values">The parameter values.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetValueTranspose( EffectHandle^ parameter, array<Matrix>^ values );\r
-\r
- /// <summary>\r
- /// Resets constant values to those defined in the shader.\r
- /// </summary>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetDefaults();\r
-\r
- /// <summary>\r
- /// Gets the constant table description.\r
- /// </summary>\r
- property ConstantTableDescription Description\r
- {\r
- ConstantTableDescription get();\r
- }\r
-\r
- /// <summary>\r
- /// Gets the raw stream of constant data.\r
- /// </summary>\r
- property DataStream^ ConstantBuffer\r
- {\r
- DataStream^ get();\r
- }\r
-\r
- /// <summary>\r
- /// Gets the raw shader stream.\r
- /// </summary>\r
- property DataStream^ FunctionStream\r
- {\r
- DataStream^ get();\r
- }\r
- };\r
- }\r
-}
\ No newline at end of file