Unverified Commit 3652780c authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

fix: fixed the file path in the convolution example.

parent 116e5eee
......@@ -6,6 +6,7 @@
* Removed explicit version on nexus-staging-maven-plugin plugin, relies on parent now.
* createProgram had the wrong signature producing a unsatisfied link exception that is now fixed.
* Fixed several bad references to resource locations.
* Fixed all of the broken examples that werent running.
## 1.4.0
......
......@@ -74,7 +74,7 @@ import java.net.URISyntaxException;
public class ConvolutionOpenCL{
@Resource("com/aparapi/examples/convolution/convolution.cl") interface Convolution extends OpenCL<Convolution>{
@Resource("convolution.cl") interface Convolution extends OpenCL<Convolution>{
Convolution applyConvolution(//
Range range, //
@GlobalReadOnly("_convMatrix3x3") float[] _convMatrix3x3,//// only read from kernel
......@@ -87,7 +87,7 @@ public class ConvolutionOpenCL{
public static void main(final String[] _args) {
final File file;
try{
file = (_args.length >= 1 ? new File(_args[0]) : new File(ConvolutionOpenCL.class.getResource("/testcard.jpg").toURI()));
file = new File(ConvolutionOpenCL.class.getResource("/testcard.jpg").toURI());
} catch (URISyntaxException e) {
throw new IllegalStateException("could not get testcard", e);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment