mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 19:15:37 -05:00
17 lines
404 B
Python
17 lines
404 B
Python
|
/*
|
||
|
* Copyright 2014 Stanlo Slasinski. All rights reserved.
|
||
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include "bgfx_compute.sh"
|
||
|
#include "uniforms.sh"
|
||
|
|
||
|
BUFFER_WR(indirectBuffer, uvec4, 0);
|
||
|
|
||
|
NUM_THREADS(1, 1, 1)
|
||
|
void main()
|
||
|
{
|
||
|
drawIndexedIndirect(indirectBuffer, 0, 6, u_dispatchSize * threadGroupUpdateSize, 0, 0, 0);
|
||
|
dispatchIndirect(indirectBuffer, 1, u_dispatchSize, 1, 1);
|
||
|
}
|