コード例 #1
0
        public static object Chars(params int[] chars)
        {
            var count = chars.Length;
            var array = new PrintableList<ISingleCharRx>(count);

            for (var i = 0; i < count; i++)
            {
                array.Add(new CharRx(chars[i]));
            }
            return array;
        }
コード例 #2
0
        public static IList <RayQueryCandidateIntersectionType> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <RayQueryCandidateIntersectionType>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #3
0
        public static IList <AccessQualifier> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <AccessQualifier>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #4
0
        public static IList <KernelProfilingInfo> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <KernelProfilingInfo>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #5
0
        public static IList <FunctionParameterAttribute> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <FunctionParameterAttribute>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #6
0
        public static IList <PairLiteralIntegerIdRef> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <PairLiteralIntegerIdRef>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #7
0
        public static IList <SamplerAddressingMode> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <SamplerAddressingMode>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #8
0
        public static IList <ImageChannelDataType> ParseCollection(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <ImageChannelDataType>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position));
            }
            return(res);
        }
コード例 #9
0
        public static IList <LiteralContextDependentNumber> ParseCollection(WordReader reader, uint wordCount,
                                                                            InstructionWithId type)
        {
            var end = reader.Position + wordCount;
            var res = new PrintableList <LiteralContextDependentNumber>();

            while (reader.Position < end)
            {
                res.Add(Parse(reader, end - reader.Position, type));
            }
            return(res);
        }
コード例 #10
0
        public IList <Node> GetNodes(IList <IdRef> ids)
        {
            var nodes = new PrintableList <Node>();

            if (ids != null)
            {
                foreach (var idRef in ids)
                {
                    nodes.Add(GetNode(idRef));
                }
            }

            return(nodes);
        }