Skip to content

Commit

Permalink
Finish implementation to run compute shader
Browse files Browse the repository at this point in the history
  • Loading branch information
esettes committed Dec 6, 2022
1 parent 663646b commit 82fd254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/device.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @ Author: Roxana Stancu (esettes)
* @ Created: 2022/12/03 02:48
* @ Modified: 2022/12/06 20:41
* @ Modified: 2022/12/06 20:45
*
* @ Description: Open a device, create logical device and allocate execution
* queues from it.
Expand Down Expand Up @@ -118,7 +118,6 @@ void create_descriptor_pool(void)
printf("[ERROR] Can't create descriptor pool.\n");
return ;
}

}

void destroy_commandpool_logicaldevice(void)
Expand Down
7 changes: 2 additions & 5 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @ Author: Roxana Stancu (esettes)
* @ Created: 2022/12/02 23:40
* @ Modified: 2022/12/06 20:02
* @ Modified: 2022/12/06 20:45
*/

#include "compute.h"
Expand All @@ -10,6 +10,7 @@
#include "pipeline.h"
#include "memory.h"

/* Need to map GPUs memory to our memory */
/* Buffers mirrors */
uint32_t g_in_data[1000];
float g_out_data[1000];
Expand All @@ -31,7 +32,3 @@ int main(int argc, char **argv)
(void)argc;
return (0);
}



// Bind buffer handles with the descriptor set

0 comments on commit 82fd254

Please sign in to comment.