DrawContext: Use uniform buffers on all platforms (simulated where necessary)

This commit is contained in:
Henrik Rydgard committed 2017-02-08 12:55:58 +01:00
1 parent fe1b593c15
commit 9bdae8f32e
8 files changed
+43 -34

No files matched your search

+2 -2
View File
@@ -596,12 +596,12 @@ void NativeInitGraphics(GraphicsContext *graphicsContext) {
PipelineDesc colorDesc{
Primitive::TRIANGLE_LIST,
{ g_draw->GetVshaderPreset(VS_COLOR_2D), g_draw->GetFshaderPreset(FS_COLOR_2D) },
inputLayout, depth, blendNormal, rasterNoCull
inputLayout, depth, blendNormal, rasterNoCull, &vsColBufDesc,
};
PipelineDesc texColorDesc{
Primitive::TRIANGLE_LIST,
{ g_draw->GetVshaderPreset(VS_TEXTURE_COLOR_2D), g_draw->GetFshaderPreset(FS_TEXTURE_COLOR_2D) },
inputLayout, depth, blendNormal, rasterNoCull
inputLayout, depth, blendNormal, rasterNoCull, &vsTexColBufDesc,
};
colorPipeline = g_draw->CreateGraphicsPipeline(colorDesc);