MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / OpenCLBuffer

Method OpenCLBuffer

core/src/core/opencl_buffer.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// --------------------------------------------------------------------------------------------------------------------
26
27OpenCLBuffer::OpenCLBuffer(const OpenCLDevice& openCL, size_t size)
28 : mSize(size)
29{
30 auto status = CL_SUCCESS;
31 mBuffer = clCreateBuffer(openCL.context(), CL_MEM_READ_WRITE, size, nullptr, &status);
32 if (status != CL_SUCCESS)
33 throw Exception(Status::Initialization);
34}
35
36OpenCLBuffer::~OpenCLBuffer()
37{

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.85
contextMethod · 0.45

Tested by

no test coverage detected