What about the types int2, int3, float2, float3 etc

后端 未结 5 1016
孤城傲影
孤城傲影 2020-12-20 13:03

I\'ve seen different code snippets using these types, but I haven\'t seen if they are defined in some or just defined in a \"local header file\"

5条回答
  •  悲&欢浪女
    2020-12-20 13:09

    These types aren't a part of standard C++. They might either be defined in some third-party library, or you're looking at some other dialect or language.

    GPU code (Shader languages such as GLSL, Cg or HLSL, or GPGPU stuff like CUDA or OpenCL) typically defines types like these though, as names for the corresponding SIMD datatypes.

提交回复
热议问题