Lines Matching refs:pHeader
40 spv_header_t* pHeader) { in spvBinaryHeaderGet() argument
44 if (!pHeader) return SPV_ERROR_INVALID_POINTER; in spvBinaryHeaderGet()
47 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet()
48 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet()
50 if ((pHeader->version & 0x000000ff) || pHeader->version & 0xff000000) in spvBinaryHeaderGet()
53 if (pHeader->version < SPV_SPIRV_VERSION_WORD(1, 0) || in spvBinaryHeaderGet()
54 pHeader->version > SPV_VERSION) in spvBinaryHeaderGet()
57 pHeader->generator = in spvBinaryHeaderGet()
59 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet()
60 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet()
61 pHeader->instructions = &binary->code[SPV_INDEX_INSTRUCTION]; in spvBinaryHeaderGet()