add BindingMapping instead Map<uint32_t,int>
This commit is contained in:
parent
70715e93e8
commit
e398a85e65
@ -1,9 +1,10 @@
|
|||||||
#ifndef HGL_GRAPH_VULKAN_INCLUDE
|
#ifndef HGL_GRAPH_VULKAN_INCLUDE
|
||||||
#define HGL_GRAPH_VULKAN_INCLUDE
|
#define HGL_GRAPH_VULKAN_INCLUDE
|
||||||
|
|
||||||
#include<hgl/type/List.h>
|
|
||||||
#include<hgl/math/Math.h>
|
#include<hgl/math/Math.h>
|
||||||
|
#include<hgl/type/List.h>
|
||||||
#include<hgl/type/String.h>
|
#include<hgl/type/String.h>
|
||||||
|
#include<hgl/type/Map.h>
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
#include<hgl/graph/VKNamespace.h>
|
#include<hgl/graph/VKNamespace.h>
|
||||||
#include<hgl/graph/VKFormat.h>
|
#include<hgl/graph/VKFormat.h>
|
||||||
@ -14,6 +15,7 @@
|
|||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
|
|
||||||
using CharPointerList=hgl::List<const char *>;
|
using CharPointerList=hgl::List<const char *>;
|
||||||
|
using BindingMapping=Map<uint32_t,int>;
|
||||||
|
|
||||||
class VulkanInstance;
|
class VulkanInstance;
|
||||||
class GPUPhysicalDevice;
|
class GPUPhysicalDevice;
|
||||||
|
@ -11,7 +11,7 @@ class DescriptorSets
|
|||||||
VkDevice device;
|
VkDevice device;
|
||||||
int count;
|
int count;
|
||||||
VkDescriptorSet desc_set;
|
VkDescriptorSet desc_set;
|
||||||
const Map<uint32_t,int> *index_by_binding;
|
const BindingMapping *index_by_binding;
|
||||||
|
|
||||||
VkPipelineLayout pipeline_layout;
|
VkPipelineLayout pipeline_layout;
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ private:
|
|||||||
|
|
||||||
friend class DescriptorSetLayoutCreater;
|
friend class DescriptorSetLayoutCreater;
|
||||||
|
|
||||||
DescriptorSets(VkDevice dev,const int c,VkPipelineLayout pl,VkDescriptorSet ds,const Map<uint32_t,int> *bi):index_by_binding(bi)
|
DescriptorSets(VkDevice dev,const int c,VkPipelineLayout pl,VkDescriptorSet ds,const BindingMapping *bi):index_by_binding(bi)
|
||||||
{
|
{
|
||||||
device=dev;
|
device=dev;
|
||||||
count=c;
|
count=c;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include<hgl/graph/VK.h>
|
||||||
#include<hgl/graph/shader/ShaderResource.h>
|
#include<hgl/graph/shader/ShaderResource.h>
|
||||||
#include<hgl/type/Map.h>
|
#include<hgl/type/Map.h>
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
@ -15,7 +16,7 @@ class DescriptorSetLayoutCreater
|
|||||||
|
|
||||||
List<VkDescriptorSetLayoutBinding> layout_binding_list;
|
List<VkDescriptorSetLayoutBinding> layout_binding_list;
|
||||||
VkDescriptorSetLayout dsl=VK_NULL_HANDLE;
|
VkDescriptorSetLayout dsl=VK_NULL_HANDLE;
|
||||||
Map<uint32_t,int> index_by_binding;
|
BindingMapping index_by_binding;
|
||||||
|
|
||||||
VkPipelineLayout pipeline_layout=VK_NULL_HANDLE;
|
VkPipelineLayout pipeline_layout=VK_NULL_HANDLE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user