public interface ConstantHandler
Modifier and Type | Method and Description |
---|---|
DataBuffer |
getConstantBuffer(double[] array)
This method returns DataBuffer with contant equal to input array.
|
DataBuffer |
getConstantBuffer(float[] array)
This method returns DataBuffer with contant equal to input array.
|
DataBuffer |
getConstantBuffer(int[] array)
This method returns DataBuffer with contant equal to input array.
|
long |
moveToConstantSpace(DataBuffer dataBuffer)
If specific hardware supports dedicated constant memory, this method forces DataBuffer passed in to be moved to that constant memory.
|
void |
purgeConstants()
This method removes all cached constants
|
DataBuffer |
relocateConstantSpace(DataBuffer dataBuffer)
PLEASE NOTE: This method implementation is hardware-dependant.
|
long moveToConstantSpace(DataBuffer dataBuffer)
dataBuffer
- DataBuffer relocateConstantSpace(DataBuffer dataBuffer)
dataBuffer
- DataBuffer getConstantBuffer(int[] array)
array
- DataBuffer getConstantBuffer(float[] array)
array
- DataBuffer getConstantBuffer(double[] array)
array
- void purgeConstants()
Copyright © 2016. All Rights Reserved.