DPC++ Runtime
Runtime libraries for oneAPI DPC++
_pi_sampler Struct Reference

Implementation of samplers for CUDA. More...

#include <cuda/pi_cuda.hpp>

Inheritance diagram for _pi_sampler:
Collaboration diagram for _pi_sampler:

Public Member Functions

 _pi_sampler (pi_context context)
 
pi_uint32 increment_reference_count () noexcept
 
pi_uint32 decrement_reference_count () noexcept
 
pi_uint32 get_reference_count () const noexcept
 
 _pi_sampler (pi_context context)
 
pi_uint32 increment_reference_count () noexcept
 
pi_uint32 decrement_reference_count () noexcept
 
pi_uint32 get_reference_count () const noexcept
 
 _pi_sampler (ze_sampler_handle_t Sampler)
 
- Public Member Functions inherited from _pi_object
 _pi_object ()
 
virtual ~_pi_object ()=default
 
 _pi_object ()
 

Public Attributes

std::atomic_uint32_t refCount_
 
pi_uint32 props_
 
pi_context context_
 
ze_sampler_handle_t ZeSampler
 
- Public Attributes inherited from _pi_object
std::atomic< pi_uint32RefCount
 
ReferenceCounter RefCount
 
pi_shared_mutex Mutex
 

Detailed Description

Implementation of samplers for CUDA.

Implementation of samplers for HIP.

Sampler property layout: | 31 30 ... 6 5 | 4 3 2 | 1 | 0 | | N/A | addressing mode | fiter mode | normalize coords |

Definition at line 962 of file pi_cuda.hpp.

Constructor & Destructor Documentation

◆ _pi_sampler() [1/3]

_pi_sampler::_pi_sampler ( pi_context  context)
inline

Definition at line 967 of file pi_cuda.hpp.

◆ _pi_sampler() [2/3]

_pi_sampler::_pi_sampler ( pi_context  context)
inline

Definition at line 920 of file pi_hip.hpp.

◆ _pi_sampler() [3/3]

_pi_sampler::_pi_sampler ( ze_sampler_handle_t  Sampler)
inline

Definition at line 1506 of file pi_level_zero.hpp.

Member Function Documentation

◆ decrement_reference_count() [1/2]

pi_uint32 _pi_sampler::decrement_reference_count ( )
inlinenoexcept

Definition at line 972 of file pi_cuda.hpp.

References refCount_.

Referenced by cuda_piSamplerRelease(), and hip_piSamplerRelease().

◆ decrement_reference_count() [2/2]

pi_uint32 _pi_sampler::decrement_reference_count ( )
inlinenoexcept

Definition at line 925 of file pi_hip.hpp.

References refCount_.

◆ get_reference_count() [1/2]

pi_uint32 _pi_sampler::get_reference_count ( ) const
inlinenoexcept

◆ get_reference_count() [2/2]

pi_uint32 _pi_sampler::get_reference_count ( ) const
inlinenoexcept

Definition at line 927 of file pi_hip.hpp.

References refCount_.

◆ increment_reference_count() [1/2]

pi_uint32 _pi_sampler::increment_reference_count ( )
inlinenoexcept

Definition at line 970 of file pi_cuda.hpp.

References refCount_.

Referenced by cuda_piSamplerRetain(), and hip_piSamplerRetain().

◆ increment_reference_count() [2/2]

pi_uint32 _pi_sampler::increment_reference_count ( )
inlinenoexcept

Definition at line 923 of file pi_hip.hpp.

References refCount_.

Member Data Documentation

◆ context_

pi_context _pi_sampler::context_

Definition at line 965 of file pi_cuda.hpp.

Referenced by cuda_piSamplerGetInfo(), and hip_piSamplerGetInfo().

◆ props_

pi_uint32 _pi_sampler::props_

Definition at line 964 of file pi_cuda.hpp.

Referenced by cuda_piSamplerGetInfo(), and hip_piSamplerGetInfo().

◆ refCount_

std::atomic_uint32_t _pi_sampler::refCount_

◆ ZeSampler

ze_sampler_handle_t _pi_sampler::ZeSampler

Definition at line 1509 of file pi_level_zero.hpp.

Referenced by piSamplerRelease().


The documentation for this struct was generated from the following files: