#include <opencv2/core/ocl.hpp>
◆ hash_t
◆ ProgramSource() [1/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
| ) |
|
◆ ProgramSource() [2/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const String & | module, |
|
|
const String & | name, |
|
|
const String & | codeStr, |
|
|
const String & | codeHash ) |
|
顯式 |
◆ ProgramSource() [3/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const String & | prog | ) |
|
|
顯式 |
◆ ProgramSource() [4/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const char * | prog | ) |
|
|
顯式 |
◆ ~ProgramSource()
| cv::ocl::ProgramSource::~ProgramSource |
( |
| ) |
|
◆ ProgramSource() [5/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const ProgramSource & | prog | ) |
|
◆ ProgramSource() [6/6]
◆ empty()
| bool cv::ocl::ProgramSource::empty |
( |
| ) |
const |
|
inline |
◆ fromBinary()
描述 OpenCL 程式二進位制檔案。不要呼叫 clCreateProgramWithBinary() 和/或 clBuildProgram()。
呼叫者應保證二進位制緩衝區的生命週期大於 ProgramSource 物件(及其任何副本)。
這種二進位制檔案通常在平臺之間不可移植 - 它特定於 OpenCL 供應商/裝置/驅動程式版本。
- 引數
-
| module | 程式所有者模組的名稱 |
| name | 程式的唯一名稱(module+name 用作 OpenCL 程式快取的鍵) |
| binary | 緩衝區地址。請參閱描述中的緩衝區生命週期要求。 |
| size | 緩衝區大小 |
| buildOptions | 傳遞給 clBuildProgram() 的其他程式相關構建選項 |
- 返回
- 已建立的 ProgramSource 物件
◆ fromSPIR()
描述 SPIR 格式的 OpenCL 程式。不要呼叫 clCreateProgramWithBinary() 和/或 clBuildProgram()。
預設情況下支援 SPIR 1.2(在 buildOptions 中傳遞 '-spir-std=X.Y' 以覆蓋此行為)
呼叫者應保證二進位制緩衝區的生命週期大於 ProgramSource 物件(及其任何副本)。
此格式的程式可以在具有 'khr_spir' 擴充套件的 OpenCL 實現之間移植:https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/cl_khr_spir.html(但它們在不同的平臺之間不可移植:32 位/64 位)
注意:這些程式不能支援供應商特定的擴充套件,例如 'cl_intel_subgroups'。
- 引數
-
| module | 程式所有者模組的名稱 |
| name | 程式的唯一名稱(module+name 用作 OpenCL 程式快取的鍵) |
| binary | 緩衝區地址。請參閱描述中的緩衝區生命週期要求。 |
| size | 緩衝區大小 |
| buildOptions | 傳遞給 clBuildProgram() 的其他程式相關構建選項(這些選項會自動新增:'-x spir' 和 '-spir-std=1.2') |
- 返回
- 已建立的 ProgramSource 物件。
◆ getImpl()
| Impl * cv::ocl::ProgramSource::getImpl |
( |
| ) |
const |
|
inline |
◆ hash()
| hash_t cv::ocl::ProgramSource::hash |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ source()
| const String & cv::ocl::ProgramSource::source |
( |
| ) |
const |
◆ Impl
| Impl* cv::ocl::ProgramSource::p |
|
保護 |
該類的文件由以下檔案生成