Lines Matching defs:layout
554 TCU_THROW(NotSupportedError, "Scalar block layout not supported");
656 void generateLayout(Layout &layout, const CaseDef &caseDef)
658 vector<VkDescriptorSetLayoutBinding> &bindings = layout.layoutBindings;
662 for (deUint32 b = 0; b < layout.layoutBindings.size(); ++b)
689 layout.refData.resize(32);
690 deUint64 *ptr = (deUint64 *)layout.refData.data();
699 layout.refData.resize(16);
700 deMemcpy(layout.refData.data(), formatIsFloat(caseDef.format) ? (const void *)frefData : (const void *)urefData, sizeof(frefData));
705 layout.refData.resize(caseDef.bufferLen & (formatIsR64(caseDef.format) ? ~7: ~3));
710 float *f = (float *)layout.refData.data() + i;
715 deUint64 *u = (deUint64 *)layout.refData.data() + i;
720 int *u = (int *)layout.refData.data() + i;
944 Layout layout;
945 generateLayout(layout, m_data);
947 if (layout.layoutBindings.size() > 1 &&
948 layout.layoutBindings[1].descriptorType == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)
971 int refDataNumElements = deIntRoundToPow2(((int)layout.refData.size() / componetsSize), 4);
986 for (i = 0; i < (int)layout.refData.size() / 4; ++i)
990 decls << ((const float *)layout.refData.data())[i];
1004 for (i = 0; i < (int)layout.refData.size() / 8; ++i)
1008 decls << ((const deUint64 *)layout.refData.data())[i] << "l";
1022 for (i = 0; i < (int)layout.refData.size() / 4; ++i)
1026 decls << ((const int *)layout.refData.data())[i];
1119 decls << "layout(" << outputimgqualif << ", set = 0, binding = 0) uniform " << imgprefix << "image2D image0_0;\n";
1129 decls << "layout(scalar, set = 0, binding = 1) uniform ubodef0_1 { " << bufType << " val[1024]; } ubo0_1;\n";
1133 decls << "layout(scalar, set = 0, binding = 1) " << vol << ro << "buffer sbodef0_1 { " << bufType << " val[]; } ssbo0_1;\n";
1134 decls << "layout(scalar, set = 0, binding = 1) " << vol << ro << "buffer sbodef0_1_pad { vec4 pad; " << bufType << " val[]; } ssbo0_1_pad;\n";
1140 decls << "layout(set = 0, binding = 1) uniform itextureBuffer texbo0_1;\n";
1143 decls << "layout(set = 0, binding = 1) uniform utextureBuffer texbo0_1;\n";
1146 decls << "layout(set = 0, binding = 1) uniform " << imgprefix << "textureBuffer texbo0_1;\n";
1150 decls << "layout(" << imgqualif << "set = 0, binding = 1) " << vol << "uniform " << imgprefix << "imageBuffer image0_1;\n";
1153 decls << "layout(" << imgqualif << "set = 0, binding = 1) " << vol << "uniform " << imgprefix << "image" << imageDim << " image0_1;\n";
1159 decls << "layout(set = 0, binding = 1) uniform isampler" << imageDim << " texture0_1; \n";
1162 decls << "layout(set = 0, binding = 1) uniform usampler" << imageDim << " texture0_1; \n";
1165 decls << "layout(set = 0, binding = 1) uniform " << imgprefix << "sampler" << imageDim << " texture0_1;\n";
1172 decls << "layout(location = 0) in " << (formatIsSignedInt(format) ? ("int64_t") : ("uint64_t")) << " attr;\n";
1176 decls << "layout(location = 0) in " << vecType << " attr;\n";
1280 checks << " inboundcoords = " << layout.refData.size() / (formatIsR64(format) ? sizeof(deUint64) : sizeof(deUint32)) / numComponents << ";\n";
1431 // null descriptor loads with image format layout qualifier that doesn't include alpha may return alpha=1
1640 "layout(local_size_x = 1, local_size_y = 1) in;\n"
1722 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
1723 "layout (" + getShaderImageFormatQualifier(mapVkFormat(m_data.format)) + ", binding=0) volatile uniform "
1726 "layout(std430, binding = 1) buffer inputBuffer\n"
1783 Layout layout;
1784 generateLayout(layout, m_data);
1847 vector<VkDescriptorSetLayoutBinding> &bindings = layout.layoutBindings;
1857 // Create a layout and allocate a descriptor set for it.
2116 deMemcpy(ptr, layout.refData.data(), layout.refData.size());
2177 deMemcpy(ptr, layout.refData.data(), layout.refData.size());
2184 deMemcpy(ptr, layout.refData.data(), layout.refData.size());
2238 deMemcpy(&clearValue.float32[0], layout.refData.data(), layout.refData.size());
2242 deMemcpy(&clearValue.int32[0], layout.refData.data(), layout.refData.size());
2246 deMemcpy(&clearValue.uint32[0], layout.refData.data(), layout.refData.size());
2457 bufferInfoVec[vecIndex] = makeDescriptorBufferInfo(**buffer, 0, layout.refData.size());
2656 *pipelineLayout, // VkPipelineLayout layout;
2713 *pipelineLayout, // layout
2952 pipelineLayout.get(), // VkPipelineLayout layout;
3010 preRasterShaderPipelineInfo.layout = graphicsPipelineCreateInfo.layout;
3039 fragShaderPipelineInfo.layout = graphicsPipelineCreateInfo.layout;
3087 linkedPipelineInfo.layout = graphicsPipelineCreateInfo.layout;
3364 << "layout (location=0) in vec4 inPos;\n"
3375 << "layout (location=0) out vec4 outColor;\n"