Пример #1
0
	void Bind(int stencilRef) const{
		mRasterizerState->Bind();
		mBlendState->Bind();	
		if (sForceIncrementalStencil) {
			Renderer::GetInstance().BindIncrementalStencilState(2);
		}
		else {
			mDepthStencilState->Bind(stencilRef);
		}
	}
Пример #2
0
	void DebugPrint() const{
		Logger::Log(FB_DEFAULT_LOG_ARG, FormatString("(info) RasterizerStates : 0x%x", mRasterizerState.get()).c_str());
		Logger::Log(FB_DEFAULT_LOG_ARG, FormatString("(info) BlendStates : 0x%x", mBlendState.get()).c_str());
		Logger::Log(FB_DEFAULT_LOG_ARG, FormatString("(info) DepthStencilStates : 0x%x", mDepthStencilState.get()).c_str());

		if (mRDesc){
			Logger::Log(FB_DEFAULT_LOG_ARG, FormatString("(info) RDesc scissor: %d", mRDesc->GetScissorEnable() ? 1 : 0).c_str());
		}
		else{
			Logger::Log(FB_DEFAULT_LOG_ARG, FormatString("(info) RDesc null").c_str());
		}

	}
Пример #3
0
	void UGraphicsDevice::SetRasterizerState(RasterizerStatePtr inRasterizerState)
	{
		mD3dDeviceCtx->RSSetState(inRasterizerState.get());
	}
Пример #4
0
void GraphicsDriver::SetRasterizerState(RasterizerStatePtr inRasterizerState)
{
	g_pImmediateContext->RSSetState( inRasterizerState.get() );
}