add shader_stage to SPVData.

This commit is contained in:
Jayou 2020-10-15 15:15:03 +08:00
parent 7506a66008
commit 38fb792d79

View File

@ -311,6 +311,7 @@ extern "C"
uint32_t *spv_data;
uint32_t spv_length;
uint32_t shader_stage;
ShaderStageData input,output;
ShaderResourceData resource[VK_DESCRIPTOR_TYPE_COUNT];
@ -530,6 +531,8 @@ extern "C"
SPVData *spv=new SPVData(spirv);
spv->shader_stage = shader_stage;
{
ShaderParse sp(spirv.data(),(uint32_t)spirv.size()*sizeof(uint32_t));