Example #1
0
        public static void D3DXDecodeBC4U(ref float[] pColor, UInt64 pBC)
        {
            UInt32 NUM_PIXELS_PER_BLOCK = 16;
            var    pBC4 = new BC4_UNORM();

            pBC4.data = pBC;
            for (int i = 0; i < NUM_PIXELS_PER_BLOCK; ++i)
            {
                pColor[i] = pBC4.R(i);
            }
        }
        public static void D3DXDecodeBC4U(ref float[] pColor, ulong pBC)
        {
            uint NUM_PIXELS_PER_BLOCK = 16;
            var  pBC4 = new BC4_UNORM
            {
                Data = pBC
            };

            for (var i = 0; i < NUM_PIXELS_PER_BLOCK; ++i)
            {
                pColor[i] = pBC4.R(i);
            }
        }