what if minecraft ran on the GPU exclusively? glad you asked! because now it can
This commit is contained in:
parent
fa7bf893e7
commit
bf9af81f38
41 changed files with 2433 additions and 34 deletions
|
|
@ -0,0 +1,27 @@
|
|||
#version 460
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
layout(std430, binding = 0) buffer DrawCommand {
|
||||
uint indexCount;
|
||||
uint instanceCount;
|
||||
uint firstIndex;
|
||||
int vertexOffset;
|
||||
uint firstInstance;
|
||||
} drawCmd;
|
||||
|
||||
layout(std430, binding = 1) buffer Counters {
|
||||
uint vertexCount;
|
||||
uint indexCount;
|
||||
} counters;
|
||||
|
||||
void main() {
|
||||
drawCmd.indexCount = 0u;
|
||||
drawCmd.instanceCount = 1u;
|
||||
drawCmd.firstIndex = 0u;
|
||||
drawCmd.vertexOffset = 0;
|
||||
drawCmd.firstInstance = 0u;
|
||||
|
||||
counters.vertexCount = 0u;
|
||||
counters.indexCount = 0u;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue