コード例 #1
0
ファイル: PixelShader.cs プロジェクト: WolfgangSt/axiom
		bool SetOpParam( SymbolDef symboldef )
		{
			bool success = true;

			if ( argCnt < MAXOPPARRAMS )
			{
				if ( opParams[ argCnt ].Filled )
				{
					argCnt++;
				}
			}

			if ( argCnt < MAXOPPARRAMS )
			{
				opParams[ argCnt ].Filled = true;
				opParams[ argCnt ].Arg = symboldef.pass2Data;
			}
			else
			{
				success = false;
			}

			return success;
		}
コード例 #2
0
ファイル: PixelShader.cs プロジェクト: ryan-bunker/axiom3d
		private bool SetOpParam( SymbolDef symboldef )
		{
			bool success = true;

			if ( this.argCnt < MAXOPPARRAMS )
			{
				if ( this.opParams[ this.argCnt ].Filled )
				{
					this.argCnt++;
				}
			}

			if ( this.argCnt < MAXOPPARRAMS )
			{
				this.opParams[ this.argCnt ].Filled = true;
				this.opParams[ this.argCnt ].Arg = symboldef.pass2Data;
			}
			else
			{
				success = false;
			}

			return success;
		}