Textured triangle implementation.
This commit is contained in:
parent
9e680ac9cb
commit
8c698eb3c7
36
.vscode/launch.json
vendored
Normal file
36
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
{
|
||||
"type": "java",
|
||||
"name": "Launch Current File",
|
||||
"request": "launch",
|
||||
"mainClass": "${file}"
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "Launch SigKeeper",
|
||||
"request": "launch",
|
||||
"mainClass": "sig.SigKeeper",
|
||||
"projectName": "SigKeeper"
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "Launch SigRenderer",
|
||||
"request": "launch",
|
||||
"mainClass": "sig.SigRenderer",
|
||||
"projectName": "SigRenderer"
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "Launch TestKernel",
|
||||
"request": "launch",
|
||||
"mainClass": "sig.TestKernel",
|
||||
"projectName": "SigRenderer"
|
||||
}
|
||||
]
|
||||
}
|
1095
hs_err_pid19336.log
Normal file
1095
hs_err_pid19336.log
Normal file
File diff suppressed because it is too large
Load Diff
5
pom.xml
5
pom.xml
@ -17,6 +17,11 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.aparapi</groupId>
|
||||
<artifactId>aparapi</artifactId>
|
||||
<version>3.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -10,14 +10,15 @@ public class TestKernel extends Kernel{
|
||||
|
||||
int[] a,b;
|
||||
float[] sum;
|
||||
boolean[] test;
|
||||
boolean test1,test2;
|
||||
final int val=55555555;
|
||||
|
||||
TestKernel(int[] a,int[] b,float[] sum,boolean[] test) {
|
||||
TestKernel(int[] a,int[] b,float[] sum,boolean test1,boolean test2) {
|
||||
this.a=a;
|
||||
this.b=b;
|
||||
this.sum=sum;
|
||||
this.test=test;
|
||||
this.test1=test1;
|
||||
this.test2=test2;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
@ -33,7 +34,7 @@ public class TestKernel extends Kernel{
|
||||
|
||||
float[] sum = new float[size];
|
||||
|
||||
TestKernel kernel = new TestKernel(a,b,sum,new boolean[]{true});
|
||||
TestKernel kernel = new TestKernel(a,b,sum,true,false);
|
||||
|
||||
//System.out.println("Start...");
|
||||
kernel.execute(Range.create(size));
|
||||
|
Loading…
x
Reference in New Issue
Block a user