aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLSampler.java
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2015-10-03 14:14:25 -0500
committerWade Walker <[email protected]>2015-11-08 14:05:30 -0600
commit4f45fe8db1b5c3790ef2659995c2065807c3fe74 (patch)
tree8a0855248986e287aeaeb4e4402c4b2139b0a0bd /src/com/jogamp/opencl/CLSampler.java
parent7c7146428a0584ad38f036d24a70c15f700f9a8e (diff)
Remove use of CL*Binding interfaces
In preparation for removing the interfaces themselves
Diffstat (limited to 'src/com/jogamp/opencl/CLSampler.java')
-rw-r--r--src/com/jogamp/opencl/CLSampler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/jogamp/opencl/CLSampler.java b/src/com/jogamp/opencl/CLSampler.java
index f3de5ffe..f6fe30bf 100644
--- a/src/com/jogamp/opencl/CLSampler.java
+++ b/src/com/jogamp/opencl/CLSampler.java
@@ -30,7 +30,7 @@ package com.jogamp.opencl;
import com.jogamp.common.nio.PointerBuffer;
import com.jogamp.opencl.impl.CLTLInfoAccessor;
-import com.jogamp.opencl.llb.CLSamplerBinding;
+import com.jogamp.opencl.llb.CL;
import java.nio.Buffer;
@@ -46,18 +46,18 @@ import static com.jogamp.opencl.util.CLUtil.*;
public class CLSampler extends CLObjectResource {
private final CLSamplerInfoAccessor samplerInfo;
- private final CLSamplerBinding binding;
+ private final CL binding;
private CLSampler(final CLContext context, final long id, final AddressingMode addrMode, final FilteringMode filtMode, final boolean normalizedCoords) {
super(context, id);
- this.binding = context.getPlatform().getSamplerBinding();
+ this.binding = context.getPlatform().getCLBinding();
this.samplerInfo = new CLSamplerInfoAccessor();
}
static CLSampler create(final CLContext context, final AddressingMode addrMode, final FilteringMode filtMode, final boolean normalizedCoords) {
final int[] error = new int[1];
- final CLSamplerBinding binding = context.getPlatform().getSamplerBinding();
+ final CL binding = context.getPlatform().getCLBinding();
final long id = binding.clCreateSampler(context.ID, clBoolean(normalizedCoords), addrMode.MODE, filtMode.MODE, error, 0);
checkForError(error[0], "can not create sampler");