Space Sim
Loading...
Searching...
No Matches
bit_reversal.comp File Reference

Reverses the bits before performing the FFT. More...

Go to the source code of this file.

Macros

#define N   128

Functions

 layout (local_size_x=16, local_size_y=16, local_size_z=1) in
 layout (rgba32f, binding=0) readonly uniform image2D inIMG
uint reverseBits (uint x, uint log2N)
void main ()

Variables

uniform int log2N

Detailed Description

Reverses the bits before performing the FFT.

Definition in file bit_reversal.comp.

Macro Definition Documentation

◆ N

#define N   128

Definition at line 13 of file bit_reversal.comp.

Referenced by init_water_grid(), and main().

Function Documentation

◆ layout() [1/2]

layout ( local_size_x = 16,
local_size_y = 16,
local_size_z = 1 )

◆ layout() [2/2]

layout ( rgba32f ,
binding = 0 )

References layout().

◆ reverseBits()

uint reverseBits ( uint x,
uint log2N )

Definition at line 15 of file bit_reversal.comp.

References log2N, and reverseBits().

Referenced by main(), and reverseBits().

◆ main()

void main ( )

Definition at line 26 of file bit_reversal.comp.

References log2N, main(), N, and reverseBits().

Variable Documentation

◆ log2N

uniform int log2N

Definition at line 25 of file bit_reversal.comp.

Referenced by main(), and reverseBits().