• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to create a buffer, and also remove it after used(GPU accelerated plugins)?

Explorer ,
Sep 18, 2018 Sep 18, 2018

Copy link to clipboard

Copied

Hi, everyone!.

I hope you are doing well.

I am creating gpu accelerated plugin right now.

I started to develop it from SDK_CrossDissolve and SDK_ProcAmp.

But there is no way to create new buffer on sample project.

So, I used following mode of metal, opencl and cuda for that.

But I am getting crash issue after 3 ~ 4 hours when I use them.

For metal:

id<MTLBuffer> tempEffectFrameData = [device newBufferWithLength : sizeof(float) * 4 * entireWidth * entireHeight options : MTLResourceStorageModeManaged];

for opencl and cuda:

int tempBufferSize = entireWidth * entireHeight * sizeof(float) * 4;

mGPUDeviceSuite->AllocateDeviceMemory(

index,

tempBufferSize,

&tempDeviceBuffer

);

Do you have another way for that?

Regards,

Igor.

TOPICS
SDK

Views

294

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation