All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.bullet.Bullet3OpenCL.b3GpuChildShapeOCLArray Maven / Gradle / Ivy

There is a newer version: 3.25-1.5.11
Show newest version
// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE

package org.bytedeco.bullet.Bullet3OpenCL;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.bullet.Bullet3Common.*;
import static org.bytedeco.bullet.global.Bullet3Common.*;
import org.bytedeco.bullet.Bullet3Collision.*;
import static org.bytedeco.bullet.global.Bullet3Collision.*;
import org.bytedeco.bullet.Bullet3Dynamics.*;
import static org.bytedeco.bullet.global.Bullet3Dynamics.*;
import org.bytedeco.bullet.LinearMath.*;
import static org.bytedeco.bullet.global.LinearMath.*;

import static org.bytedeco.bullet.global.Bullet3OpenCL.*;


@Name("b3OpenCLArray") @NoOffset @Properties(inherit = org.bytedeco.bullet.presets.Bullet3OpenCL.class)
public class b3GpuChildShapeOCLArray extends Pointer {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public b3GpuChildShapeOCLArray(Pointer p) { super(p); }

	public b3GpuChildShapeOCLArray(@Cast("cl_context") Pointer ctx, @Cast("cl_command_queue") Pointer queue, @Cast("size_t") long initialCapacity/*=0*/, @Cast("bool") boolean allowGrowingCapacity/*=true*/) { super((Pointer)null); allocate(ctx, queue, initialCapacity, allowGrowingCapacity); }
	private native void allocate(@Cast("cl_context") Pointer ctx, @Cast("cl_command_queue") Pointer queue, @Cast("size_t") long initialCapacity/*=0*/, @Cast("bool") boolean allowGrowingCapacity/*=true*/);
	public b3GpuChildShapeOCLArray(@Cast("cl_context") Pointer ctx, @Cast("cl_command_queue") Pointer queue) { super((Pointer)null); allocate(ctx, queue); }
	private native void allocate(@Cast("cl_context") Pointer ctx, @Cast("cl_command_queue") Pointer queue);

	/**this is an error-prone method with no error checking, be careful! */
	public native void setFromOpenCLBuffer(@Cast("cl_mem") Pointer buffer, @Cast("size_t") long sizeInElements);

	// we could enable this assignment, but need to make sure to avoid accidental deep copies
	//	b3OpenCLArray& operator=(const b3AlignedObjectArray& src)
	//	{
	//		copyFromArray(src);
	//		return *this;
	//	}

	public native @Cast("cl_mem") Pointer getBufferCL();

	public native @Cast("bool") boolean push_back(@Const @ByRef b3GpuChildShape _Val, @Cast("bool") boolean waitForCompletion/*=true*/);
	public native @Cast("bool") boolean push_back(@Const @ByRef b3GpuChildShape _Val);

	public native @ByVal b3GpuChildShape forcedAt(@Cast("size_t") long n);

	public native @ByVal b3GpuChildShape at(@Cast("size_t") long n);

	public native @Cast("bool") boolean resize(@Cast("size_t") long newsize, @Cast("bool") boolean copyOldContents/*=true*/);
	public native @Cast("bool") boolean resize(@Cast("size_t") long newsize);

	public native @Cast("size_t") long size();

	public native @Cast("size_t") @Name("capacity") long _capacity();

	public native @Cast("bool") boolean reserve(@Cast("size_t") long _Count, @Cast("bool") boolean copyOldContents/*=true*/);
	public native @Cast("bool") boolean reserve(@Cast("size_t") long _Count);

	public native void copyToCL(@Cast("cl_mem") Pointer destination, @Cast("size_t") long numElements, @Cast("size_t") long firstElem/*=0*/, @Cast("size_t") long dstOffsetInElems/*=0*/);
	public native void copyToCL(@Cast("cl_mem") Pointer destination, @Cast("size_t") long numElements);

	public native void copyFromHost(@Const @ByRef b3GpuChildShapeArray srcArray, @Cast("bool") boolean waitForCompletion/*=true*/);
	public native void copyFromHost(@Const @ByRef b3GpuChildShapeArray srcArray);

	public native void copyFromHostPointer(@Const b3GpuChildShape src, @Cast("size_t") long numElems, @Cast("size_t") long destFirstElem/*=0*/, @Cast("bool") boolean waitForCompletion/*=true*/);
	public native void copyFromHostPointer(@Const b3GpuChildShape src, @Cast("size_t") long numElems);

	public native void copyToHost(@ByRef b3GpuChildShapeArray destArray, @Cast("bool") boolean waitForCompletion/*=true*/);
	public native void copyToHost(@ByRef b3GpuChildShapeArray destArray);

	public native void copyToHostPointer(b3GpuChildShape destPtr, @Cast("size_t") long numElem, @Cast("size_t") long srcFirstElem/*=0*/, @Cast("bool") boolean waitForCompletion/*=true*/);
	public native void copyToHostPointer(b3GpuChildShape destPtr, @Cast("size_t") long numElem);

	public native void copyFromOpenCLArray(@Const @ByRef b3GpuChildShapeOCLArray src);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy