public void WriteConstant <T>(string name, T value) where T : struct { DeviceBuffer buffer = GetConstantBuffer(name); CudaMem.CopyStruct(value, buffer); }
public void ReadConstant <T>(out T value, string name) where T : struct { DeviceBuffer buffer = GetConstantBuffer(name); CudaMem.CopyStruct(buffer, out value); }