X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fprogram_backend.h;h=4f9d9c4730103e8188a8c2e1c3422bfe0458056f;hb=d9c437291135255422c71918cd0cab8a735848af;hp=3bdf3b7339625828e4650d75be9dba08ebbc2bad;hpb=99ca354f18119f82f1adeca100cd665a8f640317;p=libs%2Fgl.git diff --git a/source/backends/vulkan/program_backend.h b/source/backends/vulkan/program_backend.h index 3bdf3b73..4f9d9c47 100644 --- a/source/backends/vulkan/program_backend.h +++ b/source/backends/vulkan/program_backend.h @@ -17,27 +17,26 @@ class VulkanProgram: public NonCopyable friend class VulkanPipelineState; protected: - struct TransientData - { }; - Device &device; unsigned n_stages = 0; + unsigned stage_flags = 0; std::vector creation_info; std::vector desc_set_layout_handles; VkPipelineLayout layout_handle = 0; + std::string debug_name; VulkanProgram(); VulkanProgram(VulkanProgram &&); ~VulkanProgram(); bool has_stages() const; - void add_glsl_stages(const GlslModule &, const std::map &, TransientData &); + void add_glsl_stages(const GlslModule &, const std::map &); void add_spirv_stages(const SpirVModule &, const std::map &); - void finalize(const Module &, TransientData &) { } void finalize_uniforms(); - void set_debug_name(const std::string &) { } + void set_debug_name(const std::string &); + void set_vulkan_object_name() const; }; using ProgramBackend = VulkanProgram;