blob: d669d4f626841449ce6fe69b69d077790af46405 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* SCE CONFIDENTIAL
PlayStation(R)4 Programmer Tool Runtime Library Release 01.500.111
* Copyright (C) 2013 Sony Computer Entertainment Inc.
* All Rights Reserved.
*/
// #include "shader_base.h"
#define THREADS_PER_WAVEFRONT 64
RW_DataBuffer<uint> Destination : register(u0);
DataBuffer<uint> Source : register(t0);
ConstantBuffer Constants : register(c0) {uint m_destUints; uint m_srcUintsMinusOne;};
[NUM_THREADS(THREADS_PER_WAVEFRONT,1,1)]
void main(uint ID : S_DISPATCH_THREAD_ID)
{
if(ID < m_destUints)
Destination[ID] = Source[ID & m_srcUintsMinusOne];
}
|