コード例 #1
0
        static public HlslTypeDefinition CreateMatrix(HlslType type, int rows, int columns)
        {
            HlslTypeDefinition typedef = new HlslTypeDefinition(type);

            typedef.SetMatrix(rows, columns);
            return(typedef);
        }
コード例 #2
0
        // Static creation methods
        static public HlslTypeDefinition CreateVector(HlslType type, int size)
        {
            HlslTypeDefinition typedef = new HlslTypeDefinition(type);

            typedef.SetVector(size);
            return(typedef);
        }
コード例 #3
0
        static public HlslTypeDefinition CreateArray(HlslType type, int size)
        {
            HlslTypeDefinition typedef = new HlslTypeDefinition(type);

            typedef.SetArray(size);
            return(typedef);
        }
コード例 #4
0
        private void paramTypeBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            HlslType type = (HlslType)Enum.Parse(typeof(HlslType), (string)paramTypeBox.SelectedItem);

            if (type != HlslType.Texture)
            {
                paramTypeSizeBox.Visible = true;
            }
            else
            {
                paramTypeSizeBox.Visible      = false;
                paramTypeSizeA.Visible        = false;
                paramTypeSizeB.Visible        = false;
                paramSizeDividerLabel.Visible = false;
            }

            paramEdited(sender, e);
        }
コード例 #5
0
 public HlslTypeDefinition(HlslType type)
 {
     Type     = type;
     IsVector = IsArray = IsMatrix = false;
     Size     = MatrixColumns = 1;
 }
コード例 #6
0
 static public HlslTypeDefinition CreateMatrix(HlslType type, int rows, int columns)
 {
     HlslTypeDefinition typedef = new HlslTypeDefinition(type);
     typedef.SetMatrix(rows, columns);
     return typedef;
 }
コード例 #7
0
 static public HlslTypeDefinition CreateArray(HlslType type, int size)
 {
     HlslTypeDefinition typedef = new HlslTypeDefinition(type);
     typedef.SetArray(size);
     return typedef;
 }
コード例 #8
0
 // Static creation methods
 static public HlslTypeDefinition CreateVector(HlslType type, int size)
 {
     HlslTypeDefinition typedef = new HlslTypeDefinition(type);
     typedef.SetVector(size);
     return typedef;
 }
コード例 #9
0
 public HlslTypeDefinition(HlslType type)
 {
     Type = type;
     IsVector = IsArray = IsMatrix = false;
     Size = MatrixColumns = 1;
 }