cbuffer padding

nx glslc

float 起始于 内存位置4x0 ,4x1,4x2 ,4x3.... bit

float2 起始于 内存位置2x4x0 ,2x4x1,2x4x2 ,2x4x3.... bit

float3 内存位置4x4x0 ,4x4x1,4x4x2 ,4x4x3.... bit

 

cuz original packoffset float4

float padding float float float (could not use float3)

float2 padding float float (could use float2) 

float3 padding float

posted on 2017-04-06 19:13  minggoddess  阅读(156)  评论(0编辑  收藏  举报