Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 892 vs 893 for /trunk/Source Code/Platform/Video/GFXDeviceDebug.cpp

Diff revisions: vs.
  @@ -94,16 +94,19 @@
94 94 I32 viewportHeight = to_I32(viewportWidth / aspectRatio);
95 95 vec4<I32> viewport(screenWidth - viewportWidth, 0, viewportWidth, viewportHeight);
96 96
97 + PipelineDescriptor pipelineDesc;
98 + pipelineDesc._stateHash = _defaultStateNoDepthHash;
99 +
97 100 GenericDrawCommand triangleCmd;
98 101 triangleCmd.primitiveType(PrimitiveType::TRIANGLES);
99 102 triangleCmd.drawCount(1);
100 - triangleCmd.stateHash(_defaultStateNoDepthHash);
101 103
102 104 I32 viewIndex = 0;
103 105 for (U8 i = 0; i < rowCount; ++i) {
104 106 for (U8 j = 0; j < columnCount; ++j) {
105 107 DebugView& view = *_debugViews[viewIndex];
106 - triangleCmd.shaderProgram(view._shader);
108 + pipelineDesc._shaderProgram = view._shader;
109 + triangleCmd.pipeline(newPipeline(pipelineDesc));
107 110 view._texture->bind(view._textureBindSlot);
108 111
109 112 DebugView::ShaderData& shaderData = view._shaderData;