# Function ocl_core::get_extension_function_address_for_platform [−] [src]

    pub unsafe fn get_extension_function_address_for_platform(
        platform: &PlatformId,
        func_name: &str,
        platform_version: Option<&OpenclVersion>
    ) -> OclCoreResult<*mut c_void>

Returns the address of the extension function named by `func_name` for a given platform.

The pointer returned should be cast to a function pointer type matching the extension function's definition defined in the appropriate extension specification and header file.

A non-NULL return value does not guarantee that an extension function is actually supported by the platform. The application must also make a corresponding query using `ocl::core::get_platform_info(platform_core, CL_PLATFORM_EXTENSIONS, ... )` or `ocl::core::get_device_info(device_core, CL_DEVICE_EXTENSIONS, ... )` to determine if an extension is supported by the OpenCL implementation.

[FIXME]: Update enum names above to the wrapped types.

## Errors

Returns an error if:

- `func_name` cannot be converted to a `CString`.
- The specified function does not exist for the implementation.
- 'platform' is not a valid platform.

[Version Controlled: OpenCL 1.2+] See module docs for more info.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)