Package cz.fidentis.analyst.opencl.memory.impl
package cz.fidentis.analyst.opencl.memory.impl
-
ClassesClassDescriptionThis buffer encapsulates loading of
MeshFacet
instances to GPU memory.Simple resizable buffer to store integersClass providing readable conversion ofMeshTriangle
data to reside in OpenCL buffers Each triangle is represented by 3 points and 3 vectors.Buffer to hold results of ray intersections on GPU Each intersection is aligned to 8 continuous values 0,1,2 --> Intersection Point 3 --> Triangle index --> in GPU memory - needed if we want to recreate theRayIntersection
on CPU side Triangle index is positive if the HIT is direct, Negative, if the hit is indirect, and 0 if no HIT happened 4,5,6 --> Intersection Normal 7 --> Ray Intersection distanceVoxelBuffer<T extends javax.vecmath.Tuple3d>Buffer to hold 3D coordinates compatible withTuple3d
and it's descendants Even though 3 float values are stored, we need to allocate more space since OpenCL assumes the vector types (float3) to be aligned to match 4 * sizeof(component) boundary.