Lines Matching defs:context
79 const spv_context context = spvContextCreate(mapTargetSpvEnvironment(spirvVersion));
83 if (!context)
91 const spv_result_t compileOk = spvTextToBinaryWithOptions(context, spvSource.c_str(), spvSource.size(), options, &binary, &diagnostic);
107 spvContextDestroy(context);
115 spvContextDestroy(context);
123 const spv_context context = spvContextCreate(mapTargetSpvEnvironment(spirvVersion));
127 if (!context)
132 const spv_result_t result = spvBinaryToText(context, binary, binarySizeInWords, 0, &text, &diagnostic);
141 spvContextDestroy(context);
147 spvContextDestroy(context);
155 const spv_context context = spvContextCreate(getSpirvToolsEnvForValidatorOptions(val_options));
160 if (!context)
198 const spv_result_t valid = spvValidateWithOptions(context, options, &cbinary, &diagnostic);
212 const spv_result_t disasmResult = spvBinaryToText(context, binary, binarySizeInWords, disasmOptions, &disasmText, DE_NULL);
224 spvContextDestroy(context);
233 spvContextDestroy(context);