13const char *QSSGCommand::typeAsString()
const
16 case CommandType::AddShaderDefine:
17 return "AddShaderDefine";
18 case CommandType::DepthTextureAttachment:
19 return "DepthTextureAttachment";
20 case CommandType::ColorAttachment:
21 return "ColorAttachment";
22 case CommandType::AllocateTexture:
23 return "AllocateTexture";
24 case CommandType::RenderablesFilter:
25 return "RenderablesFilter";
26 case CommandType::Unknown:
28 case CommandType::AllocateBuffer:
29 return "AllocateBuffer";
30 case CommandType::BindTarget:
32 case CommandType::BindBuffer:
34 case CommandType::BindShader:
36 case CommandType::ApplyInstanceValue:
37 return "ApplyInstanceValue";
38 case CommandType::ApplyBufferValue:
39 return "ApplyBufferValue";
40 case CommandType::Render:
42 case CommandType::ApplyValue:
44 case CommandType::PipelineStateOverride:
45 return "PipelineStateOverride";
46 case CommandType::DepthStencilAttachment:
47 return "DepthStencilAttachment";
48 case CommandType::SubRenderPass:
49 return "SubRenderPass";
52 Q_UNREACHABLE_RETURN(
"");
55QString QSSGCommand::debugString()
const
58 QDebug stream(&result);
61 case CommandType::AllocateTexture:
62 static_cast<
const QSSGAllocateTexture *>(
this)->addDebug(stream);
64 case CommandType::AllocateBuffer:
65 static_cast<
const QSSGAllocateBuffer*>(
this)->addDebug(stream);
67 case CommandType::BindTarget:
68 static_cast<
const QSSGBindTarget*>(
this)->addDebug(stream);
70 case CommandType::BindBuffer:
71 static_cast<
const QSSGBindBuffer*>(
this)->addDebug(stream);
73 case CommandType::BindShader:
74 static_cast<
const QSSGBindShader*>(
this)->addDebug(stream);
76 case CommandType::ApplyInstanceValue:
77 static_cast<
const QSSGApplyInstanceValue*>(
this)->addDebug(stream);
79 case CommandType::ApplyBufferValue:
80 static_cast<
const QSSGApplyBufferValue*>(
this)->addDebug(stream);
82 case CommandType::Render:
83 static_cast<
const QSSGRender*>(
this)->addDebug(stream);
85 case CommandType::ApplyValue:
86 static_cast<
const QSSGApplyValue*>(
this)->addDebug(stream);
88 case CommandType::Unknown: