Lines Matching refs:decl

554       const QoShaderDecl *decl = &module->pDeclarations[i];
555 switch (decl->decl_type) {
557 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
560 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_STORAGE_BUFFER);
563 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER);
566 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE);
569 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER);
572 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER);
575 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE);
578 add_desc_binding(module->stage, decl->set, decl->binding, VK_DESCRIPTOR_TYPE_SAMPLER);
590 const QoShaderDecl *decl = &module->pDeclarations[i];
591 switch (decl->decl_type) {
594 if (!strcmp(decl->type, "float") || decl->type[0] == 'v')
595 add_vertex_attribute(decl->location, 0, VK_FORMAT_R32G32B32A32_SFLOAT, next_vtx_offset);
596 else if (decl->type[0] == 'u')
597 add_vertex_attribute(decl->location, 0, VK_FORMAT_R32G32B32A32_UINT, next_vtx_offset);
598 else if (decl->type[0] == 'i')
599 add_vertex_attribute(decl->location, 0, VK_FORMAT_R32G32B32A32_SINT, next_vtx_offset);
605 if (!strcmp(decl->type, "float") || decl->type[0] == 'v')
606 color_outputs[decl->location] = VK_FORMAT_R32G32B32A32_SFLOAT;
607 else if (decl->type[0] == 'u')
608 color_outputs[decl->location] = VK_FORMAT_R32G32B32A32_UINT;
609 else if (decl->type[0] == 'i')
610 color_outputs[decl->location] = VK_FORMAT_R32G32B32A32_SINT;