summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3c6245a)
Change-Id: I67fb0f6d7eddbde198a2d68519afd35f8a9eb667
}
case CommandType::BIND_UNIFORM_BUFFER:
{
}
case CommandType::BIND_UNIFORM_BUFFER:
{
- auto& bindings = cmd.data.bindUniformBuffers;
- auto buffer = bindings.standaloneUniformsBufferBinding;
+ if(currentPipeline)
+ {
+ auto& bindings = cmd.data.bindUniformBuffers;
+ auto buffer = bindings.standaloneUniformsBufferBinding;
- // based on reflection, issue gl calls
- buffer.buffer->BindAsUniformBuffer(static_cast<const TestGraphicsProgram*>(currentPipeline->programState.program), bindings.standaloneUniformsBufferBinding);
+ // based on reflection, issue gl calls
+ buffer.buffer->BindAsUniformBuffer(static_cast<const TestGraphicsProgram*>(currentPipeline->programState.program), bindings.standaloneUniformsBufferBinding);
+ }
break;
}
case CommandType::BIND_SAMPLERS:
break;
}
case CommandType::BIND_SAMPLERS:
}
case CommandType::DRAW:
{
}
case CommandType::DRAW:
{
- mGl.DrawArrays(GetTopology(currentPipeline->inputAssemblyState.topology),
- 0,
- cmd.data.draw.draw.vertexCount);
+ if(currentPipeline)
+ {
+ mGl.DrawArrays(GetTopology(currentPipeline->inputAssemblyState.topology),
+ 0,
+ cmd.data.draw.draw.vertexCount);
+ }
break;
}
case CommandType::DRAW_INDEXED:
{
break;
}
case CommandType::DRAW_INDEXED:
{
- mGl.DrawElements(GetTopology(currentPipeline->inputAssemblyState.topology),
- static_cast<GLsizei>(cmd.data.draw.drawIndexed.indexCount),
- GL_UNSIGNED_SHORT,
- reinterpret_cast<void*>(cmd.data.draw.drawIndexed.firstIndex));
+ if(currentPipeline)
+ {
+ mGl.DrawElements(GetTopology(currentPipeline->inputAssemblyState.topology),
+ static_cast<GLsizei>(cmd.data.draw.drawIndexed.indexCount),
+ GL_UNSIGNED_SHORT,
+ reinterpret_cast<void*>(cmd.data.draw.drawIndexed.firstIndex));
+ }
break;
}
case CommandType::DRAW_INDEXED_INDIRECT:
{
break;
}
case CommandType::DRAW_INDEXED_INDIRECT:
{
- mGl.DrawElements(GetTopology(currentPipeline->inputAssemblyState.topology),
- static_cast<GLsizei>(cmd.data.draw.drawIndexed.indexCount),
- GL_UNSIGNED_SHORT,
- reinterpret_cast<void*>(cmd.data.draw.drawIndexed.firstIndex));
+ if(currentPipeline)
+ {
+ mGl.DrawElements(GetTopology(currentPipeline->inputAssemblyState.topology),
+ static_cast<GLsizei>(cmd.data.draw.drawIndexed.indexCount),
+ GL_UNSIGNED_SHORT,
+ reinterpret_cast<void*>(cmd.data.draw.drawIndexed.firstIndex));
+ }
break;
}
case CommandType::SET_SCISSOR:
break;
}
case CommandType::SET_SCISSOR:
const auto& area = cmd.data.beginRenderPass.renderArea;
if(area.x == 0 &&
area.y == 0 &&
const auto& area = cmd.data.beginRenderPass.renderArea;
if(area.x == 0 &&
area.y == 0 &&
area.width == renderTarget->mCreateInfo.extent.width &&
area.height == renderTarget->mCreateInfo.extent.height)
{
area.width == renderTarget->mCreateInfo.extent.width &&
area.height == renderTarget->mCreateInfo.extent.height)
{
TraceCallStack& mCallStack;
GLuint mId{0};
TraceCallStack& mCallStack;
GLuint mId{0};
- GLuint mDepthBuffer;
- GLuint mStencilBuffer;
+ GLuint mDepthBuffer{0};
+ GLuint mStencilBuffer{0};