static public HlslTypeDefinition CreateMatrix(HlslType type, int rows, int columns) { HlslTypeDefinition typedef = new HlslTypeDefinition(type); typedef.SetMatrix(rows, columns); return(typedef); }
// Static creation methods static public HlslTypeDefinition CreateVector(HlslType type, int size) { HlslTypeDefinition typedef = new HlslTypeDefinition(type); typedef.SetVector(size); return(typedef); }
static public HlslTypeDefinition CreateArray(HlslType type, int size) { HlslTypeDefinition typedef = new HlslTypeDefinition(type); typedef.SetArray(size); return(typedef); }
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); }
public HlslTypeDefinition(HlslType type) { Type = type; IsVector = IsArray = IsMatrix = false; Size = MatrixColumns = 1; }
static public HlslTypeDefinition CreateMatrix(HlslType type, int rows, int columns) { HlslTypeDefinition typedef = new HlslTypeDefinition(type); typedef.SetMatrix(rows, columns); return typedef; }
static public HlslTypeDefinition CreateArray(HlslType type, int size) { HlslTypeDefinition typedef = new HlslTypeDefinition(type); typedef.SetArray(size); return typedef; }
// Static creation methods static public HlslTypeDefinition CreateVector(HlslType type, int size) { HlslTypeDefinition typedef = new HlslTypeDefinition(type); typedef.SetVector(size); return typedef; }