SPIR-V: Declare all inputs/outputs in OpEntryPoint

This commit is contained in:
Dr. Chat
2016-06-12 11:18:00 -05:00
parent 9b4876bb50
commit 7ef7cc39f5
2 changed files with 43 additions and 15 deletions

View File

@@ -134,6 +134,9 @@ class SpirvShaderTranslator : public ShaderTranslator {
spv::Id samplers_ = 0;
spv::Id tex_[4] = {0}; // Images {1D, 2D, 3D, Cube}
// SPIR-V IDs that are part of the in/out interface.
std::vector<spv::Id> interface_ids_;
// Map of {binding -> {offset -> spv input}}
std::map<uint32_t, std::map<uint32_t, spv::Id>> vertex_binding_map_;