MCPcopy Create free account
hub / github.com/ROCm/clr / CL_API_CALL CreateSampler

Function CL_API_CALL CreateSampler

opencl/tools/cltrace/cltrace.cpp:1526–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524}
1525
1526static cl_sampler CL_API_CALL CreateSampler(cl_context context, cl_bool normalized_coords,
1527 cl_addressing_mode addressing_mode,
1528 cl_filter_mode filter_mode, cl_int* errcode_ret) {
1529 std::ostringstream ss;
1530 Rec r(&ss);
1531
1532 ss << "clCreateSampler(" << context << ',';
1533 ss << normalized_coords << ',';
1534 ss << getAddressingModeString(addressing_mode) << ',';
1535 ss << getFilterModeString(filter_mode) << ',';
1536
1537 addRec(&r);
1538 cl_sampler ret = original_dispatch.CreateSampler(context, normalized_coords, addressing_mode,
1539 filter_mode, errcode_ret);
1540 delRec(&r);
1541
1542 ss << getErrorString(errcode_ret) << ") = " << ret;
1543
1544 ss << std::endl;
1545 std::cerr << ss.str();
1546 return ret;
1547}
1548
1549static cl_int CL_API_CALL RetainSampler(cl_sampler sampler) {
1550 std::ostringstream ss;

Callers

nothing calls this directly

Calls 5

getAddressingModeStringFunction · 0.85
getFilterModeStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected