Added a spinlock template as well as a thread work pool class.
Also, optimized shader compilation to happen on threads.
This commit is contained in:
parent
4fe3ee1730
commit
c613ead5fa
37 changed files with 458 additions and 192 deletions
|
|
@ -3448,8 +3448,6 @@ bool RenderingDeviceVulkan::_uniform_add_binding(Vector<Vector<VkDescriptorSetLa
|
|||
|
||||
RID RenderingDeviceVulkan::shader_create(const Vector<ShaderStageData> &p_stages) {
|
||||
|
||||
_THREAD_SAFE_METHOD_
|
||||
|
||||
//descriptor layouts
|
||||
Vector<Vector<VkDescriptorSetLayoutBinding> > set_bindings;
|
||||
Vector<Vector<UniformInfo> > uniform_info;
|
||||
|
|
@ -3694,6 +3692,8 @@ RID RenderingDeviceVulkan::shader_create(const Vector<ShaderStageData> &p_stages
|
|||
|
||||
//all good, let's create modules
|
||||
|
||||
_THREAD_SAFE_METHOD_
|
||||
|
||||
Shader shader;
|
||||
|
||||
shader.vertex_input_locations = vertex_input_locations;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue