2015-05-02 05:52:11 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Stanlo Slasinski. All rights reserved.
|
2016-01-01 11:11:04 +03:00
|
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
2015-05-02 05:52:11 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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);
|
|
|
|
}
|