/// <summary> /// Constructs a new Cuda texture 2D. /// </summary> /// <param name="accelerator">The target accelerator.</param> /// <param name="d3dDevice">The target DX device.</param> /// <param name="texture">The target DX texture.</param> /// <param name="bufferFlags">The used buffer flags.</param> /// <param name="viewFlags">The used view flags.</param> internal CudaDirectXTexture2DArray( CudaAccelerator accelerator, Device d3dDevice, Texture2D texture, DirectXBufferFlags bufferFlags, DirectXViewFlags viewFlags) : base(accelerator, d3dDevice, texture, bufferFlags, viewFlags) { CudaDirectXAccelerator.RegisterResource( texture, viewFlags, out cudaGraphicsResource); }
/// <summary> /// Constructs a new Cuda buffer. /// </summary> /// <param name="accelerator">The target accelerator.</param> /// <param name="d3dDevice">The target DX device.</param> /// <param name="buffer">The target DX buffer.</param> /// <param name="bufferFlags">The buffer flags.</param> /// <param name="viewFlags">The used view flags</param> internal CudaDirectXBuffer( CudaAccelerator accelerator, Device d3dDevice, Buffer buffer, DirectXBufferFlags bufferFlags, DirectXViewFlags viewFlags) : base(accelerator, d3dDevice, buffer, bufferFlags, viewFlags) { CudaDirectXAccelerator.RegisterResource( Buffer, viewFlags, out cudaGraphicsResource); }