OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d10 / EffectPassDescription.cpp
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d10/EffectPassDescription.cpp b/SlimDXc_Jun2010(VC++2008)/source/direct3d10/EffectPassDescription.cpp
deleted file mode 100644 (file)
index 31ae998..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-/*\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
-#include "stdafx.h"\r
-\r
-#include "../DataStream.h"\r
-\r
-#include "EffectPassDescription.h"\r
-#include "../d3dcompiler/ShaderSignatureDC.h"\r
-\r
-using namespace System;\r
-\r
-namespace SlimDX\r
-{\r
-namespace Direct3D10\r
-{ \r
-       EffectPassDescription::EffectPassDescription( const D3D10_PASS_DESC& native )\r
-       {\r
-               m_Name = gcnew String( native.Name );\r
-               m_Annotations = native.Annotations;\r
-               m_Signature = gcnew D3DCompiler::ShaderSignature( gcnew DataStream( native.pIAInputSignature, native.IAInputSignatureSize, true, false ) );\r
-               m_StencilRef = native.StencilRef;\r
-               m_SampleMask = native.SampleMask;\r
-               m_BlendFactor = Color4( native.BlendFactor[ 3 ], native.BlendFactor[ 0 ], native.BlendFactor[ 1 ], native.BlendFactor[ 2 ] );\r
-       }\r
-       \r
-       String^ EffectPassDescription::Name::get()\r
-       {\r
-               return m_Name;\r
-       }\r
-       \r
-       int EffectPassDescription::AnnotationCount::get()\r
-       {\r
-               return m_Annotations;\r
-       }\r
-       \r
-       D3DCompiler::ShaderSignature^ EffectPassDescription::Signature::get()\r
-       {\r
-               return m_Signature;\r
-       }\r
-       \r
-       int EffectPassDescription::StencilReference::get()\r
-       {\r
-               return m_StencilRef;\r
-       }\r
-       \r
-       int EffectPassDescription::SampleMask::get()\r
-       {\r
-               return m_SampleMask;\r
-       }\r
-       \r
-       Color4 EffectPassDescription::BlendFactor::get()\r
-       {\r
-               return m_BlendFactor;\r
-       }\r
-\r
-       bool EffectPassDescription::operator == ( EffectPassDescription left, EffectPassDescription right )\r
-       {\r
-               return EffectPassDescription::Equals( left, right );\r
-       }\r
-\r
-       bool EffectPassDescription::operator != ( EffectPassDescription left, EffectPassDescription right )\r
-       {\r
-               return !EffectPassDescription::Equals( left, right );\r
-       }\r
-\r
-       int EffectPassDescription::GetHashCode()\r
-       {\r
-               return m_Name->GetHashCode() + m_Annotations.GetHashCode() + m_Signature->GetHashCode() + m_StencilRef.GetHashCode() + m_SampleMask.GetHashCode() + m_BlendFactor.GetHashCode();\r
-       }\r
-\r
-       bool EffectPassDescription::Equals( Object^ value )\r
-       {\r
-               if( value == nullptr )\r
-                       return false;\r
-\r
-               if( value->GetType() != GetType() )\r
-                       return false;\r
-\r
-               return Equals( safe_cast<EffectPassDescription>( value ) );\r
-       }\r
-\r
-       bool EffectPassDescription::Equals( EffectPassDescription value )\r
-       {\r
-               return ( m_Name == value.m_Name && m_Annotations == value.m_Annotations && m_Signature == value.m_Signature && m_StencilRef == value.m_StencilRef && m_SampleMask == value.m_SampleMask && m_BlendFactor == value.m_BlendFactor );\r
-       }\r
-\r
-       bool EffectPassDescription::Equals( EffectPassDescription% value1, EffectPassDescription% value2 )\r
-       {\r
-               return ( value1.m_Name == value2.m_Name && value1.m_Annotations == value2.m_Annotations && value1.m_Signature == value2.m_Signature && value1.m_StencilRef == value2.m_StencilRef && value1.m_SampleMask == value2.m_SampleMask && value1.m_BlendFactor == value2.m_BlendFactor );\r
-       }\r
-}\r
-}\r