workspace
This commit is contained in:
parent
ae190c6202
commit
882999e591
14
.gdb_history
Normal file
14
.gdb_history
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
quit
|
||||||
|
break main.c:11
|
||||||
|
run
|
||||||
|
image
|
||||||
|
print image
|
||||||
|
print image.data
|
||||||
|
print image.data[0]
|
||||||
|
print image.data
|
||||||
|
x image.data
|
||||||
|
x *image.data
|
||||||
|
x *=image.data
|
||||||
|
print image
|
||||||
|
context
|
||||||
|
quit
|
1469
include/helper_math.h
Normal file
1469
include/helper_math.h
Normal file
File diff suppressed because it is too large
Load Diff
23
main.c
Normal file
23
main.c
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include "raylib.h"
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
const int size_x = 1920;
|
||||||
|
const int size_y = 1080;
|
||||||
|
Image image = GenImageColor(size_x, size_y, BLUE);
|
||||||
|
|
||||||
|
InitWindow(size_x, size_y, "cuda teseteroni");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(!IsWindowFullscreen()) ToggleFullscreen();
|
||||||
|
|
||||||
|
while(!WindowShouldClose()) {
|
||||||
|
BeginDrawing();
|
||||||
|
DrawTexture(LoadTextureFromImage(image), 0, 0, WHITE);
|
||||||
|
EndDrawing();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
6
main.cu
Normal file
6
main.cu
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "include/helper_math.h"
|
||||||
|
__global__ void random_noise(double **image) {
|
||||||
|
int2 unnormalized_coordinates = make_int2(blockDim.x, blockDim.y) * make_int2(blockIdx.x, blockIdx.y) + make_int2(threadIdx.x, threadIdx.y);
|
||||||
|
int2 img_res = make_int2(blockDim.x, blockDim.y) * make_int2(gridDim.x, gridDim.y);//could move out of kernel for performance boost
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user