X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Ffinalize.h;h=f9502954f6b1d6ed9983e403c14414870ae63090;hb=5871764de7aa23d2c40cac03ad9d07088fb57e06;hp=bde0618abf2bc3dc5d73f57209486f575fa1e1b6;hpb=efbce87192ce73ba577684369f759693dccec67c;p=libs%2Fgl.git diff --git a/source/glsl/finalize.h b/source/glsl/finalize.h index bde0618a..f9502954 100644 --- a/source/glsl/finalize.h +++ b/source/glsl/finalize.h @@ -29,13 +29,13 @@ class LocationAllocator: private TraversingVisitor private: struct Uniform { - int location; - int desc_set; - int bind_point; - - Uniform(): location(-1), desc_set(-1), bind_point(-1) { } + int location = -1; + int desc_set = 0; + int bind_point = -1; }; + Features features; + bool alloc_new = true; std::map > used_locations; std::map uniforms; std::map > used_bindings; @@ -44,7 +44,7 @@ private: std::vector unbound_blocks; public: - void apply(Module &, const Features &); + void apply(Module &, const Features &, bool = true); private: void apply(Stage &);