Skip to content

Commit

Permalink
CResourceManager: Parse constants after compiling the shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 29, 2015
1 parent b321fd4 commit 5e0c02d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Layers/xrRenderPC_GL/glResourceManager_Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)

VERIFY(SUCCEEDED(_hr));

// Parse constant, texture, sampler binding
if (SUCCEEDED(_hr))
{
// Let constant table parse it's data
_vs->constants.parse(_result, RC_dest_vertex);
}

CHECK_OR_EXIT (
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
Expand Down Expand Up @@ -302,6 +309,13 @@ SPS* CResourceManager::_CreatePS (LPCSTR _name)

VERIFY(SUCCEEDED(_hr));

// Parse constant, texture, sampler binding
if (SUCCEEDED(_hr))
{
// Let constant table parse it's data
_ps->constants.parse(_result, RC_dest_pixel);
}

CHECK_OR_EXIT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
Expand Down Expand Up @@ -367,6 +381,13 @@ SGS* CResourceManager::_CreateGS (LPCSTR name)

VERIFY(SUCCEEDED(_hr));

// Parse constant, texture, sampler binding
if (SUCCEEDED(_hr))
{
// Let constant table parse it's data
_gs->constants.parse(_result, RC_dest_geometry);
}

FS.r_close ( file );

CHECK_OR_EXIT (
Expand Down

0 comments on commit 5e0c02d

Please sign in to comment.