Fix compile Errors
This commit is contained in:
parent
16be725743
commit
dc9c448150
|
@ -8,21 +8,14 @@ namespace Oyster
|
||||||
{
|
{
|
||||||
namespace Preparations
|
namespace Preparations
|
||||||
{
|
{
|
||||||
void Basic::BindBackBufferRTV(bool DepthStencil)
|
void Basic::BindBackBufferRTV()
|
||||||
{
|
{
|
||||||
if(DepthStencil)
|
BindBackBufferRTV(Core::depthStencil);
|
||||||
{
|
|
||||||
Core::deviceContext->OMSetRenderTargets(1,&Core::backBufferRTV,Core::depthStencil);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Core::deviceContext->OMSetRenderTargets(1,&Core::backBufferRTV,NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::BindBackBufferRTV(ID3D11DepthStencilView& depthStencil)
|
void Basic::BindBackBufferRTV(ID3D11DepthStencilView* depthStencil)
|
||||||
{
|
{
|
||||||
Core::deviceContext->OMSetRenderTargets(1,&Core::backBufferRTV,&depthStencil);
|
Core::deviceContext->OMSetRenderTargets(1,&Core::backBufferRTV,depthStencil);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::BindBackBufferUAV()
|
void Basic::BindBackBufferUAV()
|
||||||
|
@ -38,13 +31,13 @@ namespace Oyster
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Core::deviceContext->OMSetRenderTargets(size,RTVs,NULL);
|
BindRTV(RTVs, size, nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::BindRTV(ID3D11RenderTargetView* RTVs[], int size,ID3D11DepthStencilView& depthStencil)
|
void Basic::BindRTV(ID3D11RenderTargetView* RTVs[], int size,ID3D11DepthStencilView* depthStencil)
|
||||||
{
|
{
|
||||||
Core::deviceContext->OMSetRenderTargets(size,RTVs,&depthStencil);
|
Core::deviceContext->OMSetRenderTargets(size,RTVs,depthStencil);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::BindUAV(ID3D11UnorderedAccessView* UAVs[], int size)
|
void Basic::BindUAV(ID3D11UnorderedAccessView* UAVs[], int size)
|
||||||
|
@ -52,13 +45,10 @@ namespace Oyster
|
||||||
Core::deviceContext->CSSetUnorderedAccessViews(0,size,UAVs,0);
|
Core::deviceContext->CSSetUnorderedAccessViews(0,size,UAVs,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::ClearBackBuffer(Oyster::Math::Float4 Color, bool ClearDefaultDepthStencil)
|
void Basic::ClearBackBuffer(Oyster::Math::Float4 Color)
|
||||||
{
|
{
|
||||||
Core::deviceContext->ClearRenderTargetView(Core::backBufferRTV,Color);
|
ClearRTV(&Core::backBufferRTV, 1,Color);
|
||||||
if(ClearDefaultDepthStencil)
|
ClearDepthStencil(Core::depthStencil);
|
||||||
{
|
|
||||||
Core::deviceContext->ClearDepthStencilView(Core::depthStencil,1,1,0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::ClearRTV(ID3D11RenderTargetView* RTVs[], int size,Oyster::Math::Float4 Color)
|
void Basic::ClearRTV(ID3D11RenderTargetView* RTVs[], int size,Oyster::Math::Float4 Color)
|
||||||
|
@ -69,9 +59,9 @@ namespace Oyster
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::ClearDepthStencil(ID3D11DepthStencilView &depthStencil)
|
void Basic::ClearDepthStencil(ID3D11DepthStencilView* depthStencil)
|
||||||
{
|
{
|
||||||
Core::deviceContext->ClearDepthStencilView(&depthStencil,1,1,0);
|
Core::deviceContext->ClearDepthStencilView(depthStencil,1,1,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::SetViewPort()
|
void Basic::SetViewPort()
|
||||||
|
|
|
@ -13,10 +13,13 @@ namespace Oyster
|
||||||
static class Basic
|
static class Basic
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
/// @brief Binds the backbuffer as a RenderTargetView with or without the default DepthStencil
|
||||||
|
//! Binds the backbuffer as a RenderTargetView with or without the default DepthStencil
|
||||||
|
|
||||||
|
static void BindBackBufferRTV();
|
||||||
/** @brief Binds the backbuffer as a RenderTargetView with the specified DepthStencil*/
|
/** @brief Binds the backbuffer as a RenderTargetView with the specified DepthStencil*/
|
||||||
static void BindBackBufferRTV(ID3D11DepthStencilView& depthStencil);
|
static void BindBackBufferRTV(ID3D11DepthStencilView* depthStencil);
|
||||||
/** @brief Binds the backbuffer as a RenderTargetView with or without the default DepthStencil*/
|
|
||||||
static void BindBackBufferRTV(bool UseDefaultDepthStencil = true);
|
|
||||||
|
|
||||||
|
|
||||||
/** @brief Binds the backbuffer as a UnorderedAccessView*/
|
/** @brief Binds the backbuffer as a UnorderedAccessView*/
|
||||||
|
@ -25,18 +28,18 @@ namespace Oyster
|
||||||
/** @brief Binds the specified RenderTargetViews with or without the default DepthStencil*/
|
/** @brief Binds the specified RenderTargetViews with or without the default DepthStencil*/
|
||||||
static void BindRTV(ID3D11RenderTargetView* RTVs[], int size, bool UseDepthStencil = true);
|
static void BindRTV(ID3D11RenderTargetView* RTVs[], int size, bool UseDepthStencil = true);
|
||||||
/** @brief Binds the specified RenderTargetViews with the specified DepthStencil*/
|
/** @brief Binds the specified RenderTargetViews with the specified DepthStencil*/
|
||||||
static void BindRTV(ID3D11RenderTargetView* RTVs[], int size,ID3D11DepthStencilView& depthStencil);
|
static void BindRTV(ID3D11RenderTargetView* RTVs[], int size,ID3D11DepthStencilView* depthStencil);
|
||||||
|
|
||||||
/** @brief Binds the specified UnorderedAccessViews*/
|
/** @brief Binds the specified UnorderedAccessViews*/
|
||||||
static void BindUAV(ID3D11UnorderedAccessView* UAVs[], int size);
|
static void BindUAV(ID3D11UnorderedAccessView* UAVs[], int size);
|
||||||
|
|
||||||
/** @brief Clear the BackBuffer and if true the default DepthStencil*/
|
/** @brief Clear the BackBuffer and if true the default DepthStencil*/
|
||||||
static void ClearBackBuffer(Oyster::Math::Float4 Color, bool ClearDefaultDepthStencil = true);
|
static void ClearBackBuffer(Oyster::Math::Float4 Color);
|
||||||
|
|
||||||
/** @brief Clear the specified RenderTargetViews*/
|
/** @brief Clear the specified RenderTargetViews*/
|
||||||
static void ClearRTV(ID3D11RenderTargetView* RTVs[], int size,Oyster::Math::Float4 Color);
|
static void ClearRTV(ID3D11RenderTargetView* RTVs[], int size,Oyster::Math::Float4 Color);
|
||||||
/** @brief Clear the specified DepthStencil*/
|
/** @brief Clear the specified DepthStencil*/
|
||||||
static void ClearDepthStencil(ID3D11DepthStencilView &depthStencil);
|
static void ClearDepthStencil(ID3D11DepthStencilView* depthStencil);
|
||||||
|
|
||||||
/** @brief Binds the default ViewPort*/
|
/** @brief Binds the default ViewPort*/
|
||||||
static void SetViewPort();
|
static void SetViewPort();
|
||||||
|
|
|
@ -41,11 +41,15 @@ namespace Oyster
|
||||||
/** @todo Create DX States */
|
/** @todo Create DX States */
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
#pragma region Setup Views
|
||||||
|
/** @todo Create Views */
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
#pragma region Create Shader Effects
|
#pragma region Create Shader Effects
|
||||||
/** @todo Create ShaderEffects */
|
/** @todo Create ShaderEffects */
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
return Core::Init::Sucsess;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue