optimized codes.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-02-18 17:27:16 +08:00
parent bb9096fb1a
commit 1c92d0eeaa

View File

@ -285,6 +285,8 @@ struct ShaderResourceData
T *items; T *items;
}; };
using ShaderDescriptorResource=ShaderResourceData<Descriptor>[VK_DESCRIPTOR_TYPE_COUNT];
struct SPVData struct SPVData
{ {
bool result; bool result;
@ -294,8 +296,9 @@ struct SPVData
uint32_t *spv_data; uint32_t *spv_data;
uint32_t spv_length; uint32_t spv_length;
ShaderStageData input,output; ShaderStageData input,
ShaderResourceData<Descriptor> resource[VK_DESCRIPTOR_TYPE_COUNT]; output;
ShaderDescriptorResource resource;
ShaderResourceData<PushConstant> push_constant; ShaderResourceData<PushConstant> push_constant;
ShaderResourceData<SubpassInput> subpass_input; ShaderResourceData<SubpassInput> subpass_input;