Lines Matching refs:binary
52 ProgramBinary::ProgramBinary (ProgramFormat format, size_t binarySize, const deUint8* binary)
54 , m_binary (binary, binary+binarySize)
72 bool isSaneSpirVBinary (const ProgramBinary& binary)
79 DE_ASSERT(binary.getFormat() == PROGRAM_FORMAT_SPIRV);
81 if (binary.getSize() % sizeof(deUint32) != 0)
84 if (binary.getSize() < sizeof(deUint32))
87 if (*(const deUint32*)binary.getBinary() != spirvMagicBytes)
93 ProgramBinary* createProgramBinaryFromSpirV (const vector<deUint32>& binary)
95 DE_ASSERT(!binary.empty());
98 return new ProgramBinary(PROGRAM_FORMAT_SPIRV, binary.size()*sizeof(deUint32), (const deUint8*)&binary[0]);
111 vector<deUint32> binary;
113 if (!compileGlslToSpirV(program, &binary, buildInfo))
120 if (!validateSpirV(binary.size(), &binary[0], &validationLog))
125 TCU_THROW(InternalError, "Validation failed for compiled SPIR-V binary");
129 return createProgramBinaryFromSpirV(binary);
138 vector<deUint32> binary;
140 if (!assembleSpirV(&program, &binary, buildInfo))
147 if (!validateSpirV(binary.size(), &binary[0], &validationLog))
152 TCU_THROW(InternalError, "Validation failed for assembled SPIR-V binary");
156 return createProgramBinaryFromSpirV(binary);
180 *dst << "Binary doesn't look like SPIR-V at all";
193 Move<VkShaderModule> createShaderModule (const DeviceInterface& deviceInterface, VkDevice device, const ProgramBinary& binary, VkShaderModuleCreateFlags flags)
195 if (binary.getFormat() == PROGRAM_FORMAT_SPIRV)
202 (deUintptr)binary.getSize(),
203 (const deUint32*)binary.getBinary(),