Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libclc/libspirv/include/libspirv/image/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//

#if defined(__opencl_c_images)

_CLC_OVERLOAD _CLC_DECL float __spirv_ImageRead__Rfloat(image2d_t image,
int2 coord);
_CLC_OVERLOAD _CLC_DECL float __spirv_ImageRead__Rfloat(image2d_t image,
Expand Down Expand Up @@ -113,3 +115,5 @@ _CLC_OVERLOAD _CLC_DECL void __spirv_ImageWrite(image2d_t image, int4 coord,
_CLC_OVERLOAD _CLC_DECL void __spirv_ImageWrite(image3d_t image, int4 coord,
half4 texel);
#endif

#endif
4 changes: 4 additions & 0 deletions libclc/libspirv/include/libspirv/spirv_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ typedef struct {
float real, imag;
} complex_float;

#ifdef cl_khr_fp64
typedef struct {
double real, imag;
} complex_double;
#endif

#ifdef cl_khr_fp16
typedef struct {
half real, imag;
} complex_half;
#endif

#endif // CLC_SPIRV_TYPES
Loading