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

Implementation of samplers for CUDA. More...

#include <cuda/pi_cuda.hpp>

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 Attributes

std::atomic_uint32_t refCount_
 
pi_uint32 props_
 
pi_context context_
 
ze_sampler_handle_t ZeSampler
 

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 944 of file pi_cuda.hpp.

Constructor & Destructor Documentation

◆ _pi_sampler() [1/3]

_pi_sampler::_pi_sampler ( pi_context  context)
inline

Definition at line 949 of file pi_cuda.hpp.

◆ _pi_sampler() [2/3]

_pi_sampler::_pi_sampler ( pi_context  context)
inline

Definition at line 733 of file pi_hip.hpp.

◆ _pi_sampler() [3/3]

_pi_sampler::_pi_sampler ( ze_sampler_handle_t  Sampler)
inline

Definition at line 1522 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 738 of file pi_hip.hpp.

References refCount_.

◆ decrement_reference_count() [2/2]

pi_uint32 _pi_sampler::decrement_reference_count ( )
inlinenoexcept

Definition at line 954 of file pi_cuda.hpp.

References refCount_.

Referenced by cuda_piSamplerRelease(), and hip_piSamplerRelease().

◆ get_reference_count() [1/2]

pi_uint32 _pi_sampler::get_reference_count ( ) const
inlinenoexcept

Definition at line 740 of file pi_hip.hpp.

References refCount_.

◆ get_reference_count() [2/2]

pi_uint32 _pi_sampler::get_reference_count ( ) const
inlinenoexcept

◆ increment_reference_count() [1/2]

pi_uint32 _pi_sampler::increment_reference_count ( )
inlinenoexcept

Definition at line 736 of file pi_hip.hpp.

References refCount_.

◆ increment_reference_count() [2/2]

pi_uint32 _pi_sampler::increment_reference_count ( )
inlinenoexcept

Definition at line 952 of file pi_cuda.hpp.

References refCount_.

Referenced by cuda_piSamplerRetain(), and hip_piSamplerRetain().

Member Data Documentation

◆ context_

pi_context _pi_sampler::context_

Definition at line 947 of file pi_cuda.hpp.

Referenced by cuda_piSamplerGetInfo(), and hip_piSamplerGetInfo().

◆ props_

pi_uint32 _pi_sampler::props_

Definition at line 946 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 1525 of file pi_level_zero.hpp.

Referenced by piSamplerRelease().


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