Beispiel #1
0
        private TagBlockIndexBlock[] CreateLayers(int layer, int count)
        {
            var layers = new TagBlockIndexBlock[25];

            for (int index = 0; index < layers.Length; index++)
            {
                layers[index] = new TagBlockIndexBlock(  );
            }
            layers[layer].Indices = new TagBlockIndexStructBlock(0, ( byte )count);
            for (var i = layer + 1; i < 25; i++)
            {
                layers[i].Indices = new TagBlockIndexStructBlock(( byte )count, 0);
            }
            return(layers);
        }
Beispiel #2
0
 private int ShaderPassOf(TagBlockIndexBlock layer)
 {
     return(layer.Indices.Index);
 }
Beispiel #3
0
 private static bool HasShaderPass(TagBlockIndexBlock block)
 {
     return(block.Indices.Length > 0);
 }