mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 01:05:23 +08:00
qt 6.6.0 clean
This commit is contained in:
25
tests/auto/gui/rhi/qrhi/data/storagebuffer_runtime.comp
Normal file
25
tests/auto/gui/rhi/qrhi/data/storagebuffer_runtime.comp
Normal file
@ -0,0 +1,25 @@
|
||||
#version 430
|
||||
|
||||
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
layout (binding = 0, std430) buffer toGpu
|
||||
{
|
||||
float _float[];
|
||||
};
|
||||
|
||||
|
||||
layout (binding = 1, std140) buffer fromGpu
|
||||
{
|
||||
int _int[];
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
int length = min(_float.length(), _int.length());
|
||||
|
||||
for (int i = 0; i < length; ++i)
|
||||
_int[i] = int(_float[i]);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user