2013-11-20 16:51:53 +01:00
|
|
|
#include "Resources.h"
|
|
|
|
|
|
|
|
const std::wstring PathFromExeToHlsl = L"";
|
|
|
|
const std::wstring VertexTransformDebug = L"TransformDebugVertex";
|
|
|
|
const std::wstring VertexDebug = L"DebugVertex";
|
|
|
|
const std::wstring PixelRed = L"DebugPixel";
|
|
|
|
|
|
|
|
typedef Oyster::Graphics::Core::ShaderManager::ShaderType Shader;
|
|
|
|
|
|
|
|
namespace Oyster
|
|
|
|
{
|
|
|
|
namespace Graphics
|
|
|
|
{
|
|
|
|
namespace Render
|
|
|
|
{
|
|
|
|
Core::Init::State Resources::Init()
|
|
|
|
{
|
|
|
|
|
|
|
|
#pragma region LoadShaders
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
|
|
|
/** Load Vertex Shader for d3dcompile*/
|
|
|
|
Core::ShaderManager::Init(PathFromExeToHlsl + L"SimpleDebug\\" +L"DebugCameraVertex",Shader::Vertex, VertexTransformDebug, false);
|
|
|
|
Core::ShaderManager::Init(PathFromExeToHlsl + L"SimpleDebug\\" +L"DebugVertex",Shader::Vertex, VertexDebug, false);
|
|
|
|
|
|
|
|
/** Load Pixel Shader for d3dcompile */
|
|
|
|
Core::ShaderManager::Init(PathFromExeToHlsl + L"SimpleDebug\\" + L"DebugPixel", Shader::Pixel, PixelRed, false);
|
|
|
|
|
|
|
|
#else
|
|
|
|
/** Load Vertex Shader with Precompiled */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#pragma endregion
|
|
|
|
|
|
|
|
#pragma region CreateBuffers
|
|
|
|
/** @todo Create Buffers */
|
|
|
|
#pragma endregion
|
|
|
|
|
|
|
|
#pragma region Setup Render States
|
|
|
|
/** @todo Create DX States */
|
|
|
|
#pragma endregion
|
|
|
|
|
2013-11-21 09:43:53 +01:00
|
|
|
#pragma region Setup Views
|
|
|
|
/** @todo Create Views */
|
|
|
|
#pragma endregion
|
2013-11-20 16:51:53 +01:00
|
|
|
|
|
|
|
#pragma region Create Shader Effects
|
|
|
|
/** @todo Create ShaderEffects */
|
|
|
|
#pragma endregion
|
|
|
|
|
2013-11-21 09:43:53 +01:00
|
|
|
return Core::Init::Sucsess;
|
2013-11-20 16:51:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|