Textured triangle implementation.

This commit is contained in:
Joshua Sigona 2021-11-20 02:50:56 +09:00
parent 9e680ac9cb
commit 8c698eb3c7
4 changed files with 1141 additions and 4 deletions

36
.vscode/launch.json vendored Normal file
View 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

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,11 @@
</properties>
<dependencies>
<dependency>
<groupId>com.aparapi</groupId>
<artifactId>aparapi</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
<build>

View File

@ -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));