Function spirv_tools_sys::shared::context_create [−][src]
pub unsafe extern "C" fn context_create(env: TargetEnv) -> *mut ToolContext
Creates a context object for most of the SPIRV-Tools API. Returns null if env is invalid.
See specific API calls for how the target environment is interpeted (particularly assembly and validation).