D3D11: Move more state into StateManager11.
This moves the input layout cache and vertex and index data managers
and related info into the state manager. This makes it easier to
manage the state application with regards to dirty bits.
Also updates the dirty current value handling in StateManager11.
BUG=angleproject:1156
BUG=angleproject:2052
Change-Id: I8de968a1f8416363aa1c49d9e9da129942d21275
Reviewed-on: https://chromium-review.googlesource.com/616783
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/util/shader_utils.cpp b/util/shader_utils.cpp
index adc7b36..3b6dffa 100644
--- a/util/shader_utils.cpp
+++ b/util/shader_utils.cpp
@@ -208,3 +208,9 @@
glProgramBinary(program, binaryFormat, binary.data(), static_cast<GLint>(binary.size()));
return CheckLinkStatusAndReturnProgram(program, true);
}
+
+bool LinkAttachedProgram(GLuint program)
+{
+ glLinkProgram(program);
+ return (CheckLinkStatusAndReturnProgram(program, true) != 0);
+}