Function spirv_tools_sys::shared::context_create
source · pub unsafe extern "C" fn context_create(
env: TargetEnv
) -> *mut ToolContext
Expand description
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).