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

后端 未结 5 996
孤城傲影
孤城傲影 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:11

    They are used in CUDA (and openCL?) where you have specific sized floats and memory usage and alignment is a big deal.

提交回复
热议问题