CLContexts.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CLMultiContext | create(final CLPlatform... platforms)
Creates a multi context with all devices of the specified platforms. |
| public static CLMultiContext | create(final CLPlatform[] platforms, final CLDevice.
Creates a multi context with all devices of the specified platforms and types. |
| public static CLMultiContext | create(final CLPlatform[] platforms, final Filter<CLDevice>... filters)
Creates a multi context with all matching devices of the specified platforms. |
| public static CLMultiContext | |
| private static Map | filterPlatformConflicts(final Collection<CLDevice> devices)
filter devices; don't allow the same device to be used in more than one platform. |
| public List | |
| public List | |
| public boolean | isReleased()
Implements com. release() has been called.
|
| public void | |
| public String | |
| public static CLMultiContext |
| contexts | back to summary |
|---|---|
| private final List<CLContext> contexts | |
| released | back to summary |
|---|---|
| private boolean released | |
| CLMultiContext | back to summary |
|---|---|
| private CLMultiContext() | |
| create | back to summary |
|---|---|
| public static CLMultiContext create(final CLPlatform... platforms) Creates a multi context with all devices of the specified platforms. | |
| create | back to summary |
|---|---|
| public static CLMultiContext create(final CLPlatform[] platforms, final CLDevice. Creates a multi context with all devices of the specified platforms and types.
| |
| create | back to summary |
|---|---|
| public static CLMultiContext create(final CLPlatform[] platforms, final Filter<CLDevice>... filters) Creates a multi context with all matching devices of the specified platforms.
| |
| create | back to summary |
|---|---|
| public static CLMultiContext create(final Collection<CLDevice> devices) Creates a multi context with the specified devices. The devices don't have to be from the same platform. | |
| filterPlatformConflicts | back to summary |
|---|---|
| private static Map filter devices; don't allow the same device to be used in more than one platform. example: a CPU available via the AMD and Intel SDKs shouldn't end up in two contexts | |
| getContexts | back to summary |
|---|---|
| public List | |
| getDevices | back to summary |
|---|---|
| public List Returns a list containing all devices used in this multi context. | |
| isReleased | back to summary |
|---|---|
| public boolean isReleased() Implements com. Doc from com. Returns true if | |
| release | back to summary |
|---|---|
| public void release() Implements com. Releases all contexts.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| wrap | back to summary |
|---|---|
| public static CLMultiContext wrap(final CLContext... contexts) Creates a multi context with specified contexts. | |