pcisph

package
v0.0.0-...-ddc071b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

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

type PciMethod

type PciMethod struct {
	// contains filtered or unexported fields
}

func NewPCIMethod

func NewPCIMethod(sys *sph.SPH, vao uint32, vbo uint32) *PciMethod

func (*PciMethod) Run

func (pci *PciMethod) Run(message chan string, hasGL bool, mRender *render.RenderSystem)

func (*PciMethod) SetGL

func (pci *PciMethod) SetGL(vao uint32, vbo uint32)

type TempPCI

type TempPCI struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL