-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebGPU] Make compute things compile again
- Loading branch information
1 parent
1bce5ad
commit b2e3c89
Showing
6 changed files
with
30 additions
and
56 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
Backends/Graphics5/WebGPU/Sources/kinc/backend/compute.cpp
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Backends/Graphics5/WebGPU/Sources/kinc/backend/graphics5/compute.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <kinc/graphics5/compute.h> | ||
#include <kinc/math/core.h> | ||
|
||
void kinc_g5_compute_shader_init(kinc_g5_compute_shader *shader, void *source, int length) {} | ||
|
||
void kinc_g5_compute_shader_destroy(kinc_g5_compute_shader *shader) {} | ||
|
||
kinc_g5_constant_location_t kinc_g5_compute_shader_get_constant_location(kinc_g5_compute_shader *shader, const char *name) { | ||
kinc_g5_constant_location_t location = {0}; | ||
return location; | ||
} | ||
|
||
kinc_g5_texture_unit_t kinc_g5_compute_shader_get_texture_unit(kinc_g5_compute_shader *shader, const char *name) { | ||
kinc_g5_texture_unit_t unit = {0}; | ||
return unit; | ||
} |
5 changes: 5 additions & 0 deletions
5
Backends/Graphics5/WebGPU/Sources/kinc/backend/graphics5/compute.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
typedef struct kinc_g5_compute_shader_impl { | ||
int nothing; | ||
} kinc_g5_compute_shader_impl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters