示例#1
0
        public static byte GetStride(this ShaderChannel _this, Version version)
        {
            VertexFormat format    = _this.GetVertexFormat(version);
            int          dimention = _this.GetDimention(version);

            return(format.CalculateStride(version, dimention));
        }
示例#2
0
        public static byte GetStride(this ShaderChannel _this)
        {
            // since sizeof(Color) * 1 == sizeof(Byte) * 4, we can omit version
            VertexFormat format    = _this.GetVertexFormat(Version.MinVersion);
            int          dimention = _this.GetDimention(Version.MinVersion);

            return(format.CalculateStride(dimention));
        }