Added additional flags for binding texture maps and only rendering opaque/masked/blended meshes
This commit is contained in:
parent
d9612098a7
commit
85bf87125b
2 changed files with 70 additions and 27 deletions
|
|
@ -37,9 +37,15 @@
|
|||
|
||||
namespace vkglTF
|
||||
{
|
||||
enum DescriptorBindingFlags {
|
||||
ImageBaseColor = 0x00000001,
|
||||
ImageNormalMap = 0x00000002
|
||||
};
|
||||
|
||||
extern VkDescriptorSetLayout descriptorSetLayoutImage;
|
||||
extern VkDescriptorSetLayout descriptorSetLayoutUbo;
|
||||
extern VkMemoryPropertyFlags memoryPropertyFlags;
|
||||
extern uint32_t descriptorBindingFlags;
|
||||
|
||||
struct Node;
|
||||
|
||||
|
|
@ -85,7 +91,7 @@ namespace vkglTF
|
|||
VkDescriptorSet descriptorSet = VK_NULL_HANDLE;
|
||||
|
||||
Material(vks::VulkanDevice* device) : device(device) {};
|
||||
void createDescriptorSet(VkDescriptorPool descriptorPool, VkDescriptorSetLayout descriptorSetLayout);
|
||||
void createDescriptorSet(VkDescriptorPool descriptorPool, VkDescriptorSetLayout descriptorSetLayout, uint32_t descriptorBindingFlags);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
@ -231,7 +237,10 @@ namespace vkglTF
|
|||
};
|
||||
|
||||
enum RenderFlags {
|
||||
BindImages = 0x00000001
|
||||
BindImages = 0x00000001,
|
||||
RenderOpaqueNodes = 0x00000002,
|
||||
RenderAlphaMaskedNodes = 0x00000004,
|
||||
RenderAlphaBlendedNodes = 0x00000008
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue