OceanWavesCpuSize Property |
Namespace: DigitalRune.Graphics
Exception | Condition |
---|---|
ArgumentOutOfRangeException | value is less than 2. |
ArgumentException | value is not a power of two. |
If EnableCpuQueries is , the ocean wave simulation is only performed on the GPU. If EnableCpuQueries is , the ocean wave simulation is performed on the GPU and the CPU. The CPU simulation is necessary to enable queries using GetDisplacement(Single, Single, Vector3F, Vector3F).
TextureSize defines the size of the simulation grid on the GPU; CpuSize defines the size of the simulation grid on the CPU. Since the CPU simulation is slower CpuSize should be a lot smaller than TextureSize (e.g. 16 vs. 256).