Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAndrey.Mesheryakov

Posted 29 September 2013 - 08:02 AM

Yes, wp8 mean Windows Phone 8.

 

Here is blend state creation -

D3D11_BLEND_DESC bd;
bd.RenderTarget[0].BlendEnable = TRUE;
bd.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD;
bd.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA;
bd.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA; 
bd.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD;
bd.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
bd.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO;
bd.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;
bd.IndependentBlendEnable = FALSE;
bd.AlphaToCoverageEnable = FALSE;


DX::ThrowIfFailed( m_device->CreateBlendState(&bd, &m_blendNormal) );

Red background is from here - 

float blendFactor[] = {1.0f, 1.0f, 1.0f, 1.0f}; 
m_deviceContext->ClearRenderTargetView( m_rendertarget.Get(), color );

#1Andrey.Mesheryakov

Posted 29 September 2013 - 08:01 AM

Yes, wp8 mean Windows Phone 8.

Here is blend state creation - D3D11_BLEND_DESC bd;
bd.RenderTarget[0].BlendEnable = TRUE;
bd.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD;
bd.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA;
bd.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA; 
bd.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD;
bd.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
bd.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO;
bd.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;
bd.IndependentBlendEnable = FALSE;
bd.AlphaToCoverageEnable = FALSE;


DX::ThrowIfFailed( m_device->CreateBlendState(&bd, &m_blendNormal) );

Red background is from here - 

float blendFactor[] = {1.0f, 1.0f, 1.0f, 1.0f}; 
m_deviceContext->ClearRenderTargetView( m_rendertarget.Get(), color );

PARTNERS