# \#gpumat

**URL:** https://forum.opencv.org/tag/gpumat/62.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Copy directX 12 texture to GpuMat](https://forum.opencv.org/t/copy-directx-12-texture-to-gpumat/15514)

<div class="topic-metadata">

**Author:** [@roy\_c](https://forum.opencv.org/u/roy_c)\
**Replies:** 10\
**Last updated:** [November 22, 2023, 7:51pm UTC](https://forum.opencv.org/t/copy-directx-12-texture-to-gpumat/15514 "2023-11-22T19:51:53Z")

</div>

Hello, I’m trying to copy a directx 12 texture to GpuMat with pure gpu memory transfert. In opencv documentation I haven’t see any reference to directx 12 just 10 or 11. So I copy the texture in cuda memory and set th…

---

## [Can OpenCV process DirectX Texture2D directly on GPU?](https://forum.opencv.org/t/can-opencv-process-directx-texture2d-directly-on-gpu/14791)

<div class="topic-metadata">

**Author:** [@rbaleksandar](https://forum.opencv.org/u/rbaleksandar)\
**Replies:** 4\
**Last updated:** [October 10, 2023, 7:08am UTC](https://forum.opencv.org/t/can-opencv-process-directx-texture2d-directly-on-gpu/14791 "2023-10-10T07:08:34Z")

</div>

Given a Direct3D Texture2D I would like to process it using OpenCV cv::GpuMat. I am currently building 4.7 with CUDA 11.7 and CUDNN 8.9. I am having some difficulties getting around CUDA’s interop with Direct3D 11 hence…

---

## [Why some Mats don't need to be uploaded when using GPU?](https://forum.opencv.org/t/why-some-mats-dont-need-to-be-uploaded-when-using-gpu/8716)

<div class="topic-metadata">

**Author:** [@fijoy](https://forum.opencv.org/u/fijoy)\
**Replies:** 1\
**Last updated:** [May 10, 2022, 9:08am UTC](https://forum.opencv.org/t/why-some-mats-dont-need-to-be-uploaded-when-using-gpu/8716 "2022-05-10T09:08:32Z")

</div>

Hello, I’m a newbie researching and experimenting with using OpenCV’s GPU interface. I notice that some Mat arguments to cv::cuda routines need to be uploaded to GPU while some others don’t. Why is that? In cv::cuda::w…

---

## [Error converting GpuMat to Texture2D](https://forum.opencv.org/t/error-converting-gpumat-to-texture2d/1975)

<div class="topic-metadata">

**Author:** [@samuelcho](https://forum.opencv.org/u/samuelcho)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 1:15pm UTC](https://forum.opencv.org/t/error-converting-gpumat-to-texture2d/1975 "2021-03-05T13:15:41Z")

</div>

Hi everyone! I’m trying to convert a GpuMat (3 channels, CV\_8U format) to a texture. I’m doing this: cv::ogl::Texture2D tex; tex.copyFrom(GpuMat); The code compiles but I get this error at run time. OpenCV(4.5.1) Err…
