Documentation ¶
Rendered for darwin/amd64
Index ¶
Constants ¶
View Source
const DIM = 16
View Source
const EXIT = -1
View Source
const LOCAL_GROUP_SIZE = 4
View Source
const PROCEED = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPUPredictorCorrector ¶
type GPUPredictorCorrector struct {
// contains filtered or unexported fields
}
func New_GPUPredictorCorrector ¶
func New_GPUPredictorCorrector(computeGPU *gpu.ComputeGPU, sph sph.SPH, opencl *gpu.OpenCL, gl_position_buffer uint32) (GPUPredictorCorrector, error)
Please note that a GPU Compute Evolution uses shared buffer object in OpenGL for memory transfer. These use binding points in {1-6} so other rendering shaders will need to place buffers later in memory. If you are calling with a gl_position_buffer argument set to true then you must have initialized an obtained a valid open gl buffer uint id for the fluid positions
func (GPUPredictorCorrector) MemoryRequirements ¶
func (m GPUPredictorCorrector) MemoryRequirements() string
func (GPUPredictorCorrector) Run ¶
func (m GPUPredictorCorrector) Run(message *chan string) error
Executes one full compute cycle for PCI PSH compute shader which uses 2 shader kernels
Click to show internal directories.
Click to hide internal directories.