Initial checkin
11
IDE/dist/BeefConfig.toml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Registry.minlib]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../mintest/minlib" }
|
||||
|
||||
[Registry.corlib]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../../BeefLibs/corlib" }
|
||||
|
||||
[Registry.Beefy2D]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../../BeefLibs/Beefy2D" }
|
8
IDE/dist/BeefConfig_host.toml
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Registry.minlib]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../../mintest/minlib" }
|
||||
|
||||
[Registry.corlib]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../../../BeefLibs/corlib" }
|
||||
|
7
IDE/dist/BeefConfig_install.toml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Registry.minlib]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../mintest/minlib" }
|
||||
|
||||
[Registry.corlib]
|
||||
Version = "1.0.0"
|
||||
Location = { Path = "../corlib" }
|
937
IDE/dist/BeefDbgVis.toml
vendored
Normal file
|
@ -0,0 +1,937 @@
|
|||
#################### Beef Standard Types ####################
|
||||
|
||||
[[Type]]
|
||||
Name = "System.CallStackAddr"
|
||||
DisplayString = "{__funcName(this), ne}"
|
||||
Action = "ShowCodeAddr {(int)this,X}"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.DeferredCall"
|
||||
DisplayString = ""
|
||||
[Type.Expand.LinkedListItems]
|
||||
HeadPointer = "&this"
|
||||
NextPointer = "mNext"
|
||||
ValuePointer = "/*(mMethodId < 0) ? &this :*/ __cast(\"_BF_DeferredData_\", mMethodId, \"*\", (void*)&this)"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Event<*>"
|
||||
DisplayString = "{{ data={(System.Object)(mData & ~3)} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[target]"
|
||||
Value = "(System.Object)(mData)"
|
||||
Condition = "(mData & 1) == 0"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[target]"
|
||||
Value = "((System.Event<$T1>.Enumerator*)(mData & ~3)).mTarget"
|
||||
Condition = "(mData & 1) != 0"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[flags]"
|
||||
Value = "mData & 3"
|
||||
|
||||
[[Type]]
|
||||
Name = "_BF_DeferredData_*"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "__hasField(this, \"__this\")"
|
||||
String = "{{ {__demangleFakeMember(this)} this={__this} }}"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ {__demangleFakeMember(this)} }}"
|
||||
|
||||
[[Type]]
|
||||
Name = "_BF_MethodRef_*"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ {__demangleFakeMember(this)} }}"
|
||||
|
||||
|
||||
[[Type]]
|
||||
Name = "System.String"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "(__getHighBits(mAllocSizeAndFlags, 2) & 1) == 0"
|
||||
String = "{(char8*)&mPtr,s8,count=mLength}"
|
||||
[[Type.DisplayString]]
|
||||
String = "{mPtr,s8,count=mLength}"
|
||||
[[Type.StringView]]
|
||||
Condition = "(__getHighBits(mAllocSizeAndFlags, 2) & 1) == 0"
|
||||
String = "{(char8*)&mPtr,s8,count=mLength}"
|
||||
[[Type.StringView]]
|
||||
String = "{mPtr,s8,count=mLength}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__getHighBits(mAllocSizeAndFlags, 2) == 3"
|
||||
Name = "[AllocSize]"
|
||||
Value = "__clearHighBits(mAllocSizeAndFlags, 2)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__getHighBits(mAllocSizeAndFlags, 2) == 1"
|
||||
Name = "[RefSize]"
|
||||
Value = "__clearHighBits(mAllocSizeAndFlags, 2)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__getHighBits(mAllocSizeAndFlags, 2) == 0"
|
||||
Name = "[InternalSize]"
|
||||
Value = "__clearHighBits(mAllocSizeAndFlags, 2)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(__getHighBits(mAllocSizeAndFlags, 2) & 1) == 0"
|
||||
Name = "[RawChars]"
|
||||
Value = "(char8*)&mPtr,arraysize=mLength"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(__getHighBits(mAllocSizeAndFlags, 2) & 1) != 0"
|
||||
Name = "[RawChars]"
|
||||
Value = "mPtr,arraysize=mLength"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.StringView"
|
||||
DisplayString = "{__stringView(mPtr, mLength),s8}"
|
||||
StringView = "{__stringView(mPtr, mLength),s8}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[RawChars]"
|
||||
Value = "mPtr,arraysize=mLength"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Exception"
|
||||
DisplayString = "{mMessage,s8}"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Variant"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mStructType == 0"
|
||||
String = "{{ UnownedObj: {(System.Object)mData} }}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mStructType == 1"
|
||||
String = "{{ OwnedObj: {(System.Object)mData} }}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mStructType == 2"
|
||||
String = "{{ Null: {__cast((System.Type)mData, null)} }}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "((System.Type)mStructType).mSize <= sizeof(int)"
|
||||
String = "{{ InlineValue: {__bitcast((System.Type)mStructType, mData)} }}"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ AllocValue: {*__cast((System.Type)mStructType, \"*\", mData)} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "mStructType == 0"
|
||||
Name = "[UnownedObj]"
|
||||
Value = "(System.Object)mData"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "mStructType == 1"
|
||||
Name = "[OwnedObj]"
|
||||
Value = "(System.Object)mData"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "mStructType == 3"
|
||||
Name = "[Null]"
|
||||
Value = "__cast((System.Type)mData, null)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "((System.Type)mStructType).mSize <= sizeof(int)"
|
||||
Name = "[InlineValue]"
|
||||
Value = "__bitcast((System.Type)mStructType, mData)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "((System.Type)mStructType).mSize > sizeof(int)"
|
||||
Name = "[AllocValue]"
|
||||
Value = "*__cast((System.Type)mStructType, \"*\", mData)"
|
||||
|
||||
[[Type]]
|
||||
Name = "*?"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mHasValue"
|
||||
String = "{mValue}"
|
||||
[[Type.DisplayString]]
|
||||
String = "null"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Delegate"
|
||||
DisplayString = "{{{__funcName(mFuncPtr), ne}}}"
|
||||
Action = "ShowCodeAddr {(int)mFuncPtr,X}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[FuncPtr]"
|
||||
Value = "__funcName(mFuncPtr)"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Target]"
|
||||
Value = "__funcTarget(mFuncPtr, mTarget), nv"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Function"
|
||||
DisplayString = "{{{__funcName((int)this), ne}}}"
|
||||
Action = "ShowCodeAddr {(int)this,X}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Func]"
|
||||
Value = "__funcName((int)this)"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Addr]"
|
||||
Value = "(int)this,x"
|
||||
|
||||
[[Type]]
|
||||
Name = "*[]"
|
||||
DisplayString = "{{$T1[{mLength}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mLength"
|
||||
ValuePointer = "&mFirstElement"
|
||||
|
||||
[[Type]]
|
||||
Name = "*[,]"
|
||||
DisplayString = "{{$T1[{mLength / mLength1}, {mLength1}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mLength"
|
||||
LowerDimSizes = ["mLength1"]
|
||||
ValuePointer = "&mFirstElement"
|
||||
|
||||
[[Type]]
|
||||
Name = "*[,,]"
|
||||
DisplayString = "{{$T1[{mLength / mLength1 / mLength2}, {mLength1}, {mLength2}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mLength"
|
||||
LowerDimSizes = ["mLength1", "mLength2"]
|
||||
ValuePointer = "&mFirstElement"
|
||||
|
||||
[[Type]]
|
||||
Name = "*[,,,]"
|
||||
DisplayString = "{{$T1[{mLength / mLength1 / mLength2 / mLength3}, {mLength1}, {mLength2}, {mLength3}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mLength"
|
||||
LowerDimSizes = ["mLength1", "mLength2", "mLength3"]
|
||||
ValuePointer = "&mFirstElement"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Span<*>"
|
||||
DisplayString = "{{ length={mLength} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mLength"
|
||||
ValuePointer = "mPtr"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Collections.Generic.List<*>"
|
||||
DisplayString = "{{ count={mSize} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Count]"
|
||||
Value = "mSize"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mSize"
|
||||
ValuePointer = "mItems"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Collections.Generic.Dictionary<*, *>"
|
||||
DisplayString = "{{ count={mCount - mFreeCount} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Count]"
|
||||
Value = "mCount - mFreeCount"
|
||||
[Type.Expand.DictionaryItems]
|
||||
Size = "mCount - mFreeCount"
|
||||
Buckets = "&mBuckets.mFirstElement"
|
||||
Entries = "&mEntries.mFirstElement"
|
||||
Key = "mKey"
|
||||
Value = "mValue"
|
||||
Next = "mNext"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Collections.Generic.Dictionary<*, *>.Entry"
|
||||
DisplayString = "{{[{mKey}, {mValue}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Key]"
|
||||
Value = "mKey"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Value]"
|
||||
Value = "mValue"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Collections.Generic.HashSet<*>"
|
||||
DisplayString = "{{ count={mCount} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Count]"
|
||||
Value = "mCount"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mCount"
|
||||
ValuePointer = "&mSlots.mFirstElement"
|
||||
Condition = "mHashCode >= 0"
|
||||
|
||||
[[Type]]
|
||||
Name = "System.Collections.Generic.KeyValuePair<*, *>"
|
||||
DisplayString = "{{{mKey}, {mValue}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Key]"
|
||||
Value = "mKey"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Value]"
|
||||
Value = "mValue"
|
||||
|
||||
#################### C++ Standard Types ####################
|
||||
|
||||
[[Type]]
|
||||
Name = "std::vector<bool, *>"
|
||||
Flavor = "MS"
|
||||
DisplayString = "{{ size={_Mysize} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "_Mysize"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[capacity]"
|
||||
Value = "(_Myvec._Mypair._Myval2._Myend - _Myvec._Mypair._Myval2._Myfirst) * _EEN_VBITS"
|
||||
[Type.Expand.IndexListItems]
|
||||
Size = "_Mysize"
|
||||
ValueNode = "((_Myvec._Mypair._Myval2._Myfirst[$i / _EEN_VBITS] >> ($i % _EEN_VBITS)) & 1) != 0"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::vector<*, *>"
|
||||
Flavor = "GNU"
|
||||
DisplayString = "{{ size={_M_impl._M_finish - _M_impl._M_start} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "_M_impl._M_finish - _M_impl._M_start"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[capacity]"
|
||||
Value = "_M_impl._M_end_of_storage - _M_impl._M_start"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "_M_impl._M_finish - _M_impl._M_start"
|
||||
ValuePointer = "_M_impl._M_start"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::vector<*, *>"
|
||||
Flavor = "MS"
|
||||
DisplayString = "{{ size={_Mypair._Myval2._Mylast - _Mypair._Myval2._Myfirst} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "_Mypair._Myval2._Mylast - _Mypair._Myval2._Myfirst"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[capacity]"
|
||||
Value = "_Mypair._Myval2._Myend - _Mypair._Myval2._Myfirst"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "_Mypair._Myval2._Mylast - _Mypair._Myval2._Myfirst"
|
||||
ValuePointer = "_Mypair._Myval2._Myfirst"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::deque<*, *>"
|
||||
Flavor = "MS"
|
||||
DisplayString = "{{ size={_Mypair._Myval2._Mysize} }}"
|
||||
[Type.Expand.IndexListItems]
|
||||
Size = "_Mypair._Myval2._Mysize"
|
||||
ValueNode = "_Mypair._Myval2._Map[(($i + _Mypair._Myval2._Myoff) / _EEN_DS) % _Mypair._Myval2._Mapsize][($i + _Mypair._Myval2._Myoff) % _EEN_DS]"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::__cxx11::list<*, *>"
|
||||
[Type.Expand.LinkedListItems]
|
||||
HeadPointer = "_M_impl._M_node._M_next"
|
||||
EndPointer = "_M_impl._M_node"
|
||||
NextPointer = "_M_next"
|
||||
ValueType = "value_type"
|
||||
ValuePointer = "*(this + 1)"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::list<*, *>"
|
||||
DisplayString = "{{ size={_Mypair._Myval2._Mysize} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Size]"
|
||||
Value = "_Mypair._Myval2._Mysize"
|
||||
[Type.Expand.LinkedListItems]
|
||||
Size = "_Mypair._Myval2._Mysize"
|
||||
HeadPointer = "_Mypair._Myval2._Myhead._Next"
|
||||
NextPointer = "_Next"
|
||||
ValuePointer = "&_Myval"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::map<*, *, *, *>"
|
||||
Flavor = "GNU"
|
||||
DisplayString = "{{ size={_M_t._M_impl._M_node_count} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Size]"
|
||||
Value = "_M_t._M_impl._M_node_count"
|
||||
[Type.Expand.TreeItems]
|
||||
Size = "_M_t._M_impl._M_node_count"
|
||||
HeadPointer = "_M_t._M_impl._M_header._M_parent"
|
||||
LeftPointer = "_M_left"
|
||||
RightPointer = "_M_right"
|
||||
ValueType = "value_type"
|
||||
ValuePointer = "*(this + 1)"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::map<*, *, *, *>"
|
||||
Flavor = "MS"
|
||||
DisplayString = "{{ size={_Mypair._Myval2._Myval2._Mysize} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Size]"
|
||||
Value = "_Mypair._Myval2._Myval2._Mysize"
|
||||
[Type.Expand.TreeItems]
|
||||
Size = "_Mypair._Myval2._Myval2._Mysize"
|
||||
HeadPointer = "_Mypair._Myval2._Myval2._Myhead._Parent"
|
||||
LeftPointer = "_Left"
|
||||
RightPointer = "_Right"
|
||||
ValuePointer = "&_Myval"
|
||||
Condition = "_Isnil == 0"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::set<*, *, *>"
|
||||
Flavor = "MS"
|
||||
DisplayString = "{{ size={_Mypair._Myval2._Myval2._Mysize} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Size]"
|
||||
Value = "_Mypair._Myval2._Myval2._Mysize"
|
||||
[Type.Expand.TreeItems]
|
||||
Size = "_Mypair._Myval2._Myval2._Mysize"
|
||||
HeadPointer = "_Mypair._Myval2._Myval2._Myhead._Parent"
|
||||
LeftPointer = "_Left"
|
||||
RightPointer = "_Right"
|
||||
ValuePointer = "&_Myval"
|
||||
Condition = "_Isnil == 0"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::multiset<*, *, *>"
|
||||
Flavor = "MS"
|
||||
DisplayString = "{{ size={_Mypair._Myval2._Myval2._Mysize} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Size]"
|
||||
Value = "_Mypair._Myval2._Myval2._Mysize"
|
||||
[Type.Expand.TreeItems]
|
||||
Size = "_Mypair._Myval2._Myval2._Mysize"
|
||||
HeadPointer = "_Mypair._Myval2._Myval2._Myhead._Parent"
|
||||
LeftPointer = "_Left"
|
||||
RightPointer = "_Right"
|
||||
ValuePointer = "&_Myval"
|
||||
Condition = "_Isnil == 0"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::unordered_map<*, *, *, *, *>"
|
||||
DisplayString = "{_List}"
|
||||
[Type.Expand]
|
||||
ExpandedItem = "_List"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::unordered_multimap<*, *, *, *, *>"
|
||||
DisplayString = "{_List}"
|
||||
[Type.Expand]
|
||||
ExpandedItem = "_List"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::unordered_set<*, *, *, *>"
|
||||
DisplayString = "{_List}"
|
||||
[Type.Expand]
|
||||
ExpandedItem = "_List"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::unordered_multiset<*, *, *, *>"
|
||||
DisplayString = "{_List}"
|
||||
[Type.Expand]
|
||||
ExpandedItem = "_List"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::basic_string<*, *, *>"
|
||||
Flavor = "GNU"
|
||||
DisplayString = "{_M_dataplus._M_p,s}"
|
||||
StringView = "{_M_dataplus._M_p,s}"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::__cxx11::basic_string<*, *, *>"
|
||||
Flavor = "GNU"
|
||||
DisplayString = "{_M_dataplus._M_p,s}"
|
||||
StringView = "{_M_dataplus._M_p,s}"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::basic_string<*, *, *>"
|
||||
Flavor = "MS"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "_Mypair._Myval2._Myres < _Mypair._Myval2._BUF_SIZE"
|
||||
String = "{_Mypair._Myval2._Bx._Buf,na}"
|
||||
[[Type.DisplayString]]
|
||||
String = "{_Mypair._Myval2._Bx._Ptr,na}"
|
||||
[[Type.StringView]]
|
||||
Condition = "_Mypair._Myval2._Myres < _Mypair._Myval2._BUF_SIZE"
|
||||
String = "{_Mypair._Myval2._Bx._Buf,na}"
|
||||
[[Type.StringView]]
|
||||
String = "{_Mypair._Myval2._Bx._Ptr,na}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Size]"
|
||||
Value = "_Mypair._Myval2._Mysize"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Capacity]"
|
||||
Value = "_Mypair._Myval2._Myres"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Allocator]"
|
||||
Value = "_Mypair"
|
||||
|
||||
[[Type]]
|
||||
Name = "std::pair<*, *>"
|
||||
DisplayString = "({first}, {second})"
|
||||
|
||||
#################### Beefy Library Types ####################
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::StringView"
|
||||
DisplayString = "{mPtr,count=mLength}"
|
||||
StringView = "mPtr,count=mLength"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::StringImpl"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "(mAllocSizeAndFlags & 0x40000000) == 0"
|
||||
String = "{(char*)&mPtr,s8}"
|
||||
[[Type.DisplayString]]
|
||||
String = "{mPtr,s8}"
|
||||
[[Type.StringView]]
|
||||
Condition = "(mAllocSizeAndFlags & 0x40000000) == 0"
|
||||
String = "{(char*)&mPtr,s8}"
|
||||
[[Type.StringView]]
|
||||
String = "{mPtr,s8}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Length]"
|
||||
Value = "mLength"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(mAllocSizeAndFlags & 0xC0000000) == 0xC0000000"
|
||||
Name = "[AllocSize]"
|
||||
Value = "mAllocSizeAndFlags & 0x3FFFFFFF"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(mAllocSizeAndFlags & 0xC0000000) == 0x40000000"
|
||||
Name = "[RefSize]"
|
||||
Value = "mAllocSizeAndFlags & 0x3FFFFFFF"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(mAllocSizeAndFlags & 0xC0000000) == 0x00000000"
|
||||
Name = "[InternalSize]"
|
||||
Value = "mAllocSizeAndFlags & 0x3FFFFFFF"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(mAllocSizeAndFlags & 0x40000000) == 0"
|
||||
Name = "[RawChars]"
|
||||
Value = "(char*)&mPtr,s8,arraysize=mLength"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "(mAllocSizeAndFlags & 0x40000000) != 0"
|
||||
Name = "[RawChars]"
|
||||
Value = "mPtr,arraysize=mLength"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::Dictionary<*, *>"
|
||||
DisplayString = "{{ count={mCount - mFreeCount} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Count]"
|
||||
Value = "mCount - mFreeCount"
|
||||
[Type.Expand.DictionaryItems]
|
||||
Size = "mCount - mFreeCount"
|
||||
Buckets = "mBuckets"
|
||||
Entries = "mEntries"
|
||||
Key = "mKey"
|
||||
Value = "mValue"
|
||||
Next = "mNext"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::Dictionary<*, *>::Entry"
|
||||
DisplayString = "{{[{*($T1*)&mKey}, {*($T2*)&mValue}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Key]"
|
||||
Value = "*($T1*)&mKey"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Value]"
|
||||
Value = "*($T2*)&mValue"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::HashSet<*>"
|
||||
DisplayString = "{{ count={mCount - mFreeCount} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Count]"
|
||||
Value = "mCount - mFreeCount"
|
||||
[Type.Expand.DictionaryItems]
|
||||
Size = "mCount - mFreeCount"
|
||||
Buckets = "mBuckets"
|
||||
Entries = "mEntries"
|
||||
Key = "mKey"
|
||||
Next = "mNext"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::HashSet<*>::Entry"
|
||||
DisplayString = "{{[{*($T1*)&mKey}]}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Key]"
|
||||
Value = "*($T1*)&mKey"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfSizedArray<*>"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize==0"
|
||||
String = "empty"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ size={mSize} {mVals,na,arraysize=mSize}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "mSize"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mSize"
|
||||
ValuePointer = "mVals"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::Array<*, *>"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize==0"
|
||||
String = "empty"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ size={mSize} {mVals,na,arraysize=mSize}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "mSize"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mSize"
|
||||
ValuePointer = "mVals"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::SizedArrayImpl<*, *>"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize==0"
|
||||
String = "empty"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ size={mSize} {mVals,na,arraysize=mSize}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "mSize"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mSize"
|
||||
ValuePointer = "mVals"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::Deque<*, *>"
|
||||
DisplayString = "{{size={mSize}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "mSize"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "mSize"
|
||||
ValuePointer = "mVals"
|
||||
|
||||
#################### Beef Compiler Types ####################
|
||||
|
||||
[[Type]]
|
||||
Name = "llvm::SmallVectorImpl<*>"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "Size == 0"
|
||||
String = "empty"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{ size={Size} }}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "Size"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[capacity]"
|
||||
Value = "Capacity"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "Size"
|
||||
ValuePointer = "($T1*)BeginX"
|
||||
|
||||
[[Type]]
|
||||
Name = "llvm::ArrayRef<*>"
|
||||
DisplayString = "{{ size={Length} }"
|
||||
StringView = "Data,count=Length"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "Length"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "Length"
|
||||
ValuePointer = "Data"
|
||||
|
||||
[[Type]]
|
||||
Name = "llvm::StringRef"
|
||||
DisplayString = "{Data,count=Length}"
|
||||
StringView = "Data,count=Length"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[size]"
|
||||
Value = "Length"
|
||||
[Type.Expand.ArrayItems]
|
||||
Size = "Length"
|
||||
ValuePointer = "Data"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::DLIList<*>"
|
||||
DisplayString = "{{Head:{mHead}}}"
|
||||
|
||||
[Type.Expand.LinkedListItems]
|
||||
HeadPointer = "mHead"
|
||||
NextPointer = "mNext"
|
||||
ValuePointer = "this"
|
||||
ShowElementAddrs = true
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::SLIList<*>"
|
||||
DisplayString = "{{Head:{mHead}}}"
|
||||
|
||||
[Type.Expand.LinkedListItems]
|
||||
HeadPointer = "mHead"
|
||||
NextPointer = "mNext"
|
||||
ValuePointer = "this"
|
||||
ShowElementAddrs = true
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BumpList<*>"
|
||||
DisplayString = "{{Head:{mHead}}}"
|
||||
[Type.Expand.LinkedListItems]
|
||||
HeadPointer = "mHead"
|
||||
NextPointer = "mNext"
|
||||
ValuePointer = "this"
|
||||
ShowElementAddrs = true
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfAtom"
|
||||
DisplayString = "'{mString}'"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfReducer::BfVisitorPos"
|
||||
DisplayString = "{{{mParent->mChildArr.mVals[mReadPos]}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Parent]"
|
||||
Value = "mParent"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Prev]"
|
||||
Value = "mParent->mChildArr.mVals[mReadPos - 1]"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Current] --------------->"
|
||||
Value = "mParent->mChildArr.mVals[mReadPos]"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Next]"
|
||||
Value = "mParent->mChildArr.mVals[mReadPos + 1]"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[NextNext]"
|
||||
Value = "mParent->mChildArr.mVals[mReadPos + 2]"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfDirectStrTypeReference"
|
||||
DisplayString = "{{{mTypeName}}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfAstNode"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "!__hasField(this, \"mIsCompact\")"
|
||||
String = "{{{(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mSrcStart,na,count=(mSrcEnd - mSrcStart)}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mIsCompact != 0"
|
||||
String = "{{{(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + (mCompact_SrcStart&0x7FFFFFFF),na,count=(mCompact_SrcLen + 0)}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mIsCompact == 0"
|
||||
String = "{{{(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mAstInfo->mSrcStart,na,count=(mAstInfo->mSrcEnd - mAstInfo->mSrcStart)}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__hasField(this, \"mIsCompact\") && (mIsCompact != 0)"
|
||||
Name = "[CharPtrCompact]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + (mCompact_SrcStart&0x7FFFFFFF)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__hasField(this, \"mIsCompact\") && (mIsCompact == 0)"
|
||||
Name = "[CharPtrLarge]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mAstInfo->mSrcStart"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "!__hasField(this, \"mIsCompact\")"
|
||||
Name = "[CharPtr]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mSrcStart"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[SourceData]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfBlock"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "!__hasField(this, \"mIsCompact\")"
|
||||
String = "{{{(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mSrcStart,na,count=(mSrcEnd - mSrcStart)}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mIsCompact != 0"
|
||||
String = "{{{(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + (mCompact_SrcStart&0x7FFFFFFF),na,count=(mCompact_SrcLen + 0)}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mIsCompact == 0"
|
||||
String = "{{{(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mAstInfo->mSrcStart,na,count=(mAstInfo->mSrcEnd - mAstInfo->mSrcStart)}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__hasField(this, \"mIsCompact\") && (mIsCompact != 0)"
|
||||
Name = "[CharPtrCompact]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + (mCompact_SrcStart&0x7FFFFFFF)"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "__hasField(this, \"mIsCompact\") && (mIsCompact == 0)"
|
||||
Name = "[CharPtrLarge]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mAstInfo->mSrcStart"
|
||||
[[Type.Expand.Item]]
|
||||
Condition = "!__hasField(this, \"mIsCompact\")"
|
||||
Name = "[CharPtr]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mSrcStart"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[SourceData]"
|
||||
Value = "(*(Beefy::BfSourceData**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Children]"
|
||||
Value = "mChildArr"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfNearNodeRef<T>"
|
||||
DisplayString = "{{{(($T1)(*(char**)(( ((intptr_t)this & 0x7FFFFFFFFFFFF000UL) + 8)) + mIdx)}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[CharPtr]"
|
||||
Value = "(*(Beefy::BfSource**)(((intptr_t)this & 0x7FFFFFFFFFFFF000UL)))->mSrc + mSrcStart"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Idx]"
|
||||
Value = "mIdx"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfAtomComposite"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize == 0"
|
||||
String = "{{empty}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize == 1"
|
||||
String = "{{{mParts[0],na}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize == 2"
|
||||
String = "{{{mParts[0],na}.{mParts[1],na}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize == 3"
|
||||
String = "{{{mParts[0],na}.{mParts[1],na}.{mParts[2],na}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize == 4"
|
||||
String = "{{{mParts[0],na}.{mParts[1],na}.{mParts[2],na}.{mParts[3],na}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize == 5"
|
||||
String = "{{{mParts[0],na}.{mParts[1],na}.{mParts[2],na}.{mParts[3],na}.{mParts[4],na}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mSize > 5"
|
||||
String = "{{{mParts[0],na}.{mParts[1],na}.{mParts[2],na}.{mParts[3],na}.{mParts[4],na}...}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfMethodDef"
|
||||
[[Type.DisplayString]]
|
||||
String = "{{{mName}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mIsStatic"
|
||||
String = "{{static {mName}}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Name]"
|
||||
Value = "mName"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Declaration"
|
||||
Value = "mMethodDeclaration"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfMethodDef"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mIsStatic"
|
||||
String = "{{static {mName}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "!mIsStatic"
|
||||
String = "{{{mName}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Name]"
|
||||
Value = "mName"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Declaration]"
|
||||
Value = "mMethodDeclaration"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfMethodInstance"
|
||||
DisplayString = "{{{mMethodDef->mName} in {mMethodInstanceGroup->mOwner}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[MethodDef]"
|
||||
Value = "mMethodDef"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Type]"
|
||||
Value = "mMethodInstanceGroup->mOwner"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfFieldInstance"
|
||||
DisplayString = "{{{mOwner->mTypeDef->mFields.mVals[mFieldIdx]->mName} in {mOwner}}"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[FieldDef]"
|
||||
Value = "mOwner->mTypeDef->mFields.mVals[mFieldIdx]"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Type]"
|
||||
Value = "mResolvedType"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Owner]"
|
||||
Value = "mOwner"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfTypeDef"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mOuterType == null"
|
||||
String = "{{{mNamespace,na}.{mName,na}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mOuterType != null"
|
||||
String = "{{{mOuterType,na}.{mName,na}}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfTypeInstance"
|
||||
DisplayString = "{{{mTypeDef,na}}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfGenericTypeInstance"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mTypeGenericArguments.mSize == 1"
|
||||
String = "{{{mTypeDef,na}<{mTypeGenericArguments.mVals[0],na}>}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mTypeGenericArguments.mSize == 2"
|
||||
String = "{{{mTypeDef}<{mTypeGenericArguments.mVals[0],na}, {mTypeGenericArguments.mVals[1],na}>}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mTypeGenericArguments.mSize == 3"
|
||||
String = "{{{mTypeDef}<{mTypeGenericArguments.mVals[0],na}, {mTypeGenericArguments.mVals[1],na}, {mTypeGenericArguments.mVals[2],na}>}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mTypeGenericArguments.mSize == 4"
|
||||
String = "{{{mTypeDef}<{mTypeGenericArguments.mVals[0],na}, {mTypeGenericArguments.mVals[1],na}, {mTypeGenericArguments.mVals[2],na}, {mTypeGenericArguments.mVals[3]}>}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mTypeGenericArguments.mSize >= 5"
|
||||
String = "{{{mTypeDef}<{mTypeGenericArguments.mVals[0],na}, {mTypeGenericArguments.mVals[1],na}, {mTypeGenericArguments.mVals[2],na}, {mTypeGenericArguments.mVals[3]}, ...>}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfPointerType"
|
||||
DisplayString = "{{ptr {mElementType,na}}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfBoxedType"
|
||||
DisplayString = "{{boxed {mElementType,na}*}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfTupleType"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mFieldInstances.mSize == 0"
|
||||
String = "( )"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mFieldInstances.mSize == 1"
|
||||
String = "( {mFieldInstances.mVals[0].mResolvedType,na} )"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mFieldInstances.mSize == 2"
|
||||
String = "( {mFieldInstances.mVals[0].mResolvedType,na}, {mFieldInstances.mVals[1].mResolvedType,na} )"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mFieldInstances.mSize == 3"
|
||||
String = "( {mFieldInstances.mVals[0].mResolvedType,na}, {mFieldInstances.mVals[1].mResolvedType,na}, {mFieldInstances.mVals[2].mResolvedType,na} )"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "mFieldInstances.mSize == 4"
|
||||
String = "( {mFieldInstances.mVals[0].mResolvedType,na}, {mFieldInstances.mVals[1].mResolvedType,na}, {mFieldInstances.mVals[2].mResolvedType,na, {mFieldInstances.mVals[3].mResolvedType,na} )"
|
||||
[[Type.DisplayString]]
|
||||
String = "( {mFieldInstances.mVals[0].mResolvedType,na}, {mFieldInstances.mVals[1].mResolvedType,na}, {mFieldInstances.mVals[2].mResolvedType,na, {mFieldInstances.mVals[3].mResolvedType,na}, ... )"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfPrimitiveType"
|
||||
DisplayString = "{{{mTypeDef->mName,na}}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfGenericParamType"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "(int)mGenericParamKind == 0"
|
||||
String = "{{@T{mGenericParamIdx}}}"
|
||||
[[Type.DisplayString]]
|
||||
Condition = "(int)mGenericParamKind == 1"
|
||||
String = "{{@M{mGenericParamIdx}}}"
|
||||
|
||||
[[Type]]
|
||||
Name = "Beefy::BfModule"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[ModuleName]"
|
||||
Value = "mModuleName"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[CurMethodInstance]"
|
||||
Value = "mCurMethodInstance"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[File]"
|
||||
Value = "mCurFilePosition.mFileInstance->mParser->mFileName"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[LineNum]"
|
||||
Value = "mCurFilePosition.mCurLine + 1"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[ExprText]"
|
||||
Value = "mCurFilePosition.mFileInstance->mParser->mSrc + mCurFilePosition.mCurSrcPos"
|
||||
[[Type.Expand.Item]]
|
||||
Name = "[Context]"
|
||||
Value = "mContext"
|
109
IDE/dist/IDE_CreateStable.bat
vendored
Normal file
|
@ -0,0 +1,109 @@
|
|||
PUSHD %~dp0
|
||||
|
||||
mkdir host
|
||||
|
||||
@ECHO ---- Building BeefySysLib (Debug) ----
|
||||
CALL ../../bin/msbuild.bat ..\..\BeefySysLib\BeefySysLib.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:SolutionDir=%cd%\..\..\ /v:m
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
@ECHO ---- Building BeefySysLib (Release) ----
|
||||
CALL ../../bin/msbuild.bat ..\..\BeefySysLib\BeefySysLib.vcxproj /p:Configuration=Release /p:Platform=x64 /p:SolutionDir=%cd%\..\..\ /v:m
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
REM @ECHO ---- Building libhunspell (Debug) ----
|
||||
REM CALL ../../bin/msbuild.bat ..\..\libhunspell\libhunspell.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:SolutionDir=%cd%\..\ /v:m
|
||||
REM IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
REM @ECHO ---- Building libhunspell (Release) ----
|
||||
REM CALL ../../bin/msbuild.bat ..\..\libhunspell\libhunspell.vcxproj /p:Configuration=Release /p:Platform=x64 /p:SolutionDir=%cd%\..\ /v:m
|
||||
REM IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
@ECHO ---- Building IDEHelper (Debug) ----
|
||||
CALL ../../bin/msbuild.bat ..\..\IDEHelper\IDEHelper.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:SolutionDir=%cd%\..\..\ /v:m
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
@ECHO ---- Building IDEHelper (Release) ----
|
||||
CALL ../../bin/msbuild.bat ..\..\IDEHelper\IDEHelper.vcxproj /p:Configuration=Release /p:Platform=x64 /p:SolutionDir=%cd%\..\..\ /v:m
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
@ECHO ---- Building BeefBoot (Debug) ----
|
||||
CALL ../../bin/msbuild.bat ..\..\BeefBoot\BeefBoot.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:SolutionDir=%cd%\..\..\ /v:m
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
CALL ../../bin/build_rt.bat
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
@ECHO ---- Building BeefBuild (bootstrapped) ----
|
||||
BeefBoot_d.exe --out="BeefBuild_boot.exe" --src=..\src --src=..\..\BeefBuild\src --src=..\..\BeefLibs\corlib\src --src=..\..\BeefLibs\Beefy2D\src --define=CLI --define=DEBUG --startup=BeefBuild.Program --linkparams="Comdlg32.lib kernel32.lib user32.lib advapi32.lib shell32.lib Beef042RT64_d.lib IDEHelper64_d.lib BeefySysLib64_d.lib"
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
@ECHO ---- Building BeefBuild (Debug) ----
|
||||
BeefBuild_boot.exe -proddir=..\..\BeefBuild -config=Debug -platform=Win64
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
@ECHO ---- Building BeefBuild (Release) ----
|
||||
REM BeefBuild_boot.exe -proddir=..\..\BeefBuild -config=Release -platform=Win64
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
@ECHO ---- Testing IDEHelper (Debug) ----
|
||||
BeefBuild_d.exe -proddir=..\..\IDEHelper\Tests -test
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
@ECHO ---- Building IDE (Debug) ----
|
||||
BeefBuild_boot.exe -proddir=..\ -config=Debug -platform=Win64
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
@ECHO ---- Building IDE (Release) ----
|
||||
REM BeefBuild_boot.exe -proddir=..\ -config=Release -platform=Win64
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
|
||||
echo on
|
||||
|
||||
@ECHO ---- Copying files ----
|
||||
rmdir /S /Q host\bk5
|
||||
move host\bk4 host\bk5
|
||||
move host\bk3 host\bk4
|
||||
move host\bk2 host\bk3
|
||||
move host\bk1 host\bk2
|
||||
mkdir host\bk1
|
||||
copy host\IDEHelper*.* host\bk1
|
||||
copy host\Beef*RT*.* host\bk1
|
||||
copy host\Beef*Dbg*.* host\bk1
|
||||
copy host\BeefySysLib64*.* host\bk1
|
||||
copy host\BeefIDE*.exe host\bk1
|
||||
|
||||
copy BeefIDE*.* host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy BeefySysLib64*.dll host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy BeefySysLib64*.pdb host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy IDEHelper*.dll host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy IDEHelper*.pdb host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy Beef*RT*.* host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy Beef*Dbg*.* host
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
copy userdict.txt host
|
||||
@REM copy lib*.dll host
|
||||
copy Beefy2D.dll host
|
||||
copy BeefDbgVis.toml host
|
||||
copy en_*.* host
|
||||
copy BeefUser.toml host
|
||||
xcopy /y BeefConfig_host.toml host\BeefConfig.toml
|
||||
xcopy /y shaders host\shaders\
|
||||
xcopy /y images host\images\
|
||||
xcopy /y fonts host\fonts\
|
||||
cd host
|
||||
set _NO_DEBUG_HEAP=1
|
||||
START BeefIDE_d.exe -proddir=c:\beef\ide 2>ErrorLog_bf_copy.txt
|
||||
cd ..
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO FAILED
|
||||
GOTO DONE
|
||||
|
||||
:FAILED
|
||||
@ECHO FAILED!
|
||||
POPD
|
||||
PAUSE
|
||||
EXIT /b %ERRORLEVEL%
|
||||
|
||||
:DONE
|
||||
POPD
|
||||
EXIT /B 0
|
42
IDE/dist/IDE_RunCopy.bat
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
mkdir host
|
||||
|
||||
rmdir /S /Q host\bk5
|
||||
move host\bk4 host\bk5
|
||||
move host\bk3 host\bk4
|
||||
move host\bk2 host\bk3
|
||||
move host\bk1 host\bk2
|
||||
mkdir host\bk1
|
||||
copy host\IDEHelper64*.* host\bk1
|
||||
copy host\BeefRT64*.* host\bk1
|
||||
copy host\BeefySysLib64*.* host\bk1
|
||||
copy host\IDE_bf*.exe host\bk1
|
||||
|
||||
copy IDE_bf*.* host
|
||||
IF ERRORLEVEL 1 GOTO FAILED
|
||||
copy BeefySysLib64*.* host
|
||||
copy ..\x64\Debug\*.pdb host
|
||||
copy ..\x64\Release\*.pdb host
|
||||
copy IDEHelper64*.* host
|
||||
copy BeefRT*.* host
|
||||
copy libclang.dll host
|
||||
copy userdict.txt host
|
||||
@REM copy lib*.dll host
|
||||
copy Beefy2D.dll host
|
||||
copy Standard.dbgvis host
|
||||
copy en_*.* host
|
||||
copy Config.bfuser host
|
||||
xcopy /y shaders host\shaders\
|
||||
xcopy /y images host\images\
|
||||
xcopy /y fonts host\fonts\
|
||||
cd host
|
||||
set _NO_DEBUG_HEAP=1
|
||||
START IDE_bfd.exe -proddir=c:\beef\ide 2>ErrorLog_bf_copy.txt
|
||||
IF ERRORLEVEL 1 GOTO FAILED
|
||||
GOTO DONE
|
||||
|
||||
:FAILED
|
||||
@ECHO FAILED!
|
||||
PAUSE
|
||||
EXIT
|
||||
|
||||
:DONE
|
15
IDE/dist/IDE_RunCopyD.bat
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
copy IDE_bfd.exe host\IDE_bfd.exe
|
||||
copy BeefySysLib64_d.* host
|
||||
copy IDEHelper64_d.* host
|
||||
copy libclang.dll host
|
||||
copy userdict.txt host
|
||||
@REM copy lib*.dll host
|
||||
copy Beefy2D.dll host
|
||||
copy Standard.dbgvis host
|
||||
copy en_*.* host
|
||||
xcopy /y shaders host\shaders\
|
||||
xcopy /y images host\images\
|
||||
xcopy /y fonts host\fonts\
|
||||
cd host
|
||||
set _NO_DEBUG_HEAP=1
|
||||
START IDE_bfd.exe -proddir=c:\beef\ide 2>ErrorLog_bf_copy.txt
|
14
IDE/dist/IDE_RunOrig.bat
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
copy IDE.exe host\IDE.exe
|
||||
copy BeefySysLib64.* host
|
||||
copy IDEHelper64.* host
|
||||
copy libclang.dll host
|
||||
copy userdict.txt host
|
||||
copy lib*.dll host
|
||||
copy Beefy2D.dll host
|
||||
copy en_*.* host
|
||||
xcopy /y shaders host\shaders\
|
||||
xcopy /y images host\images\
|
||||
xcopy /y fonts host\fonts\
|
||||
cd host
|
||||
set _NO_DEBUG_HEAP=1
|
||||
START IDE.exe -proddir=c:\beef\ide 2>ErrorLog_bf_copy.txt
|
1186
IDE/dist/Standard.dbgvis
vendored
Normal file
205
IDE/dist/en_US.aff
vendored
Normal file
|
@ -0,0 +1,205 @@
|
|||
SET UTF-8
|
||||
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
|
||||
ICONV 1
|
||||
ICONV ’ '
|
||||
NOSUGGEST !
|
||||
|
||||
# ordinal numbers
|
||||
COMPOUNDMIN 1
|
||||
# only in compounds: 1th, 2th, 3th
|
||||
ONLYINCOMPOUND c
|
||||
# compound rules:
|
||||
# 1. [0-9]*1[0-9]th (10th, 11th, 12th, 56714th, etc.)
|
||||
# 2. [0-9]*[02-9](1st|2nd|3rd|[4-9]th) (21st, 22nd, 123rd, 1234th, etc.)
|
||||
COMPOUNDRULE 2
|
||||
COMPOUNDRULE n*1t
|
||||
COMPOUNDRULE n*mp
|
||||
WORDCHARS 0123456789
|
||||
|
||||
PFX A Y 1
|
||||
PFX A 0 re .
|
||||
|
||||
PFX I Y 1
|
||||
PFX I 0 in .
|
||||
|
||||
PFX U Y 1
|
||||
PFX U 0 un .
|
||||
|
||||
PFX C Y 1
|
||||
PFX C 0 de .
|
||||
|
||||
PFX E Y 1
|
||||
PFX E 0 dis .
|
||||
|
||||
PFX F Y 1
|
||||
PFX F 0 con .
|
||||
|
||||
PFX K Y 1
|
||||
PFX K 0 pro .
|
||||
|
||||
SFX V N 2
|
||||
SFX V e ive e
|
||||
SFX V 0 ive [^e]
|
||||
|
||||
SFX N Y 3
|
||||
SFX N e ion e
|
||||
SFX N y ication y
|
||||
SFX N 0 en [^ey]
|
||||
|
||||
SFX X Y 3
|
||||
SFX X e ions e
|
||||
SFX X y ications y
|
||||
SFX X 0 ens [^ey]
|
||||
|
||||
SFX H N 2
|
||||
SFX H y ieth y
|
||||
SFX H 0 th [^y]
|
||||
|
||||
SFX Y Y 1
|
||||
SFX Y 0 ly .
|
||||
|
||||
SFX G Y 2
|
||||
SFX G e ing e
|
||||
SFX G 0 ing [^e]
|
||||
|
||||
SFX J Y 2
|
||||
SFX J e ings e
|
||||
SFX J 0 ings [^e]
|
||||
|
||||
SFX D Y 4
|
||||
SFX D 0 d e
|
||||
SFX D y ied [^aeiou]y
|
||||
SFX D 0 ed [^ey]
|
||||
SFX D 0 ed [aeiou]y
|
||||
|
||||
SFX T N 4
|
||||
SFX T 0 st e
|
||||
SFX T y iest [^aeiou]y
|
||||
SFX T 0 est [aeiou]y
|
||||
SFX T 0 est [^ey]
|
||||
|
||||
SFX R Y 4
|
||||
SFX R 0 r e
|
||||
SFX R y ier [^aeiou]y
|
||||
SFX R 0 er [aeiou]y
|
||||
SFX R 0 er [^ey]
|
||||
|
||||
SFX Z Y 4
|
||||
SFX Z 0 rs e
|
||||
SFX Z y iers [^aeiou]y
|
||||
SFX Z 0 ers [aeiou]y
|
||||
SFX Z 0 ers [^ey]
|
||||
|
||||
SFX S Y 4
|
||||
SFX S y ies [^aeiou]y
|
||||
SFX S 0 s [aeiou]y
|
||||
SFX S 0 es [sxzh]
|
||||
SFX S 0 s [^sxzhy]
|
||||
|
||||
SFX P Y 3
|
||||
SFX P y iness [^aeiou]y
|
||||
SFX P 0 ness [aeiou]y
|
||||
SFX P 0 ness [^y]
|
||||
|
||||
SFX M Y 1
|
||||
SFX M 0 's .
|
||||
|
||||
SFX B Y 3
|
||||
SFX B 0 able [^aeiou]
|
||||
SFX B 0 able ee
|
||||
SFX B e able [^aeiou]e
|
||||
|
||||
SFX L Y 1
|
||||
SFX L 0 ment .
|
||||
|
||||
REP 90
|
||||
REP a ei
|
||||
REP ei a
|
||||
REP a ey
|
||||
REP ey a
|
||||
REP ai ie
|
||||
REP ie ai
|
||||
REP alot a_lot
|
||||
REP are air
|
||||
REP are ear
|
||||
REP are eir
|
||||
REP air are
|
||||
REP air ere
|
||||
REP ere air
|
||||
REP ere ear
|
||||
REP ere eir
|
||||
REP ear are
|
||||
REP ear air
|
||||
REP ear ere
|
||||
REP eir are
|
||||
REP eir ere
|
||||
REP ch te
|
||||
REP te ch
|
||||
REP ch ti
|
||||
REP ti ch
|
||||
REP ch tu
|
||||
REP tu ch
|
||||
REP ch s
|
||||
REP s ch
|
||||
REP ch k
|
||||
REP k ch
|
||||
REP f ph
|
||||
REP ph f
|
||||
REP gh f
|
||||
REP f gh
|
||||
REP i igh
|
||||
REP igh i
|
||||
REP i uy
|
||||
REP uy i
|
||||
REP i ee
|
||||
REP ee i
|
||||
REP j di
|
||||
REP di j
|
||||
REP j gg
|
||||
REP gg j
|
||||
REP j ge
|
||||
REP ge j
|
||||
REP s ti
|
||||
REP ti s
|
||||
REP s ci
|
||||
REP ci s
|
||||
REP k cc
|
||||
REP cc k
|
||||
REP k qu
|
||||
REP qu k
|
||||
REP kw qu
|
||||
REP o eau
|
||||
REP eau o
|
||||
REP o ew
|
||||
REP ew o
|
||||
REP oo ew
|
||||
REP ew oo
|
||||
REP ew ui
|
||||
REP ui ew
|
||||
REP oo ui
|
||||
REP ui oo
|
||||
REP ew u
|
||||
REP u ew
|
||||
REP oo u
|
||||
REP u oo
|
||||
REP u oe
|
||||
REP oe u
|
||||
REP u ieu
|
||||
REP ieu u
|
||||
REP ue ew
|
||||
REP ew ue
|
||||
REP uff ough
|
||||
REP oo ieu
|
||||
REP ieu oo
|
||||
REP ier ear
|
||||
REP ear ier
|
||||
REP ear air
|
||||
REP air ear
|
||||
REP w qu
|
||||
REP qu w
|
||||
REP z ss
|
||||
REP ss z
|
||||
REP shun tion
|
||||
REP shun sion
|
||||
REP shun cion
|
||||
REP size cise
|
48744
IDE/dist/en_US.dic
vendored
Normal file
BIN
IDE/dist/fonts/SourceCodePro-Regular.ttf
vendored
Normal file
BIN
IDE/dist/images/BoneTex.png
vendored
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
IDE/dist/images/Circle.png
vendored
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
IDE/dist/images/DarkUI.png
vendored
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
IDE/dist/images/DarkUI.psd
vendored
Normal file
BIN
IDE/dist/images/DarkUI_2.png
vendored
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
IDE/dist/images/DarkUI_4.png
vendored
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
IDE/dist/images/DarkUI_4.psd
vendored
Normal file
BIN
IDE/dist/images/IconError.png
vendored
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
IDE/dist/images/IconError_2.png
vendored
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
IDE/dist/images/IconError_4.png
vendored
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
IDE/dist/images/IconWarning.png
vendored
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
IDE/dist/images/IconWarning_2.png
vendored
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
IDE/dist/images/IconWarning_4.png
vendored
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
IDE/dist/images/Squiggle.png
vendored
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
IDE/dist/images/TransparencyGrid.png
vendored
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
IDE/dist/images/whiteDot.tga
vendored
Normal file
After Width: | Height: | Size: 47 B |
1
IDE/dist/make_pdb.bat
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
"\Program Files (x86)\VisualD\cv2pdb\cv2pdb.exe" IDE_bf.exe
|
1
IDE/dist/make_pdb_d.bat
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
"\Program Files (x86)\VisualD\cv2pdb\cv2pdb.exe" IDE_bfd.exe
|
1
IDE/dist/notes.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Hey
|
42
IDE/dist/shaders/Std.fx
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
Texture2D tex2D;
|
||||
SamplerState linearSampler
|
||||
{
|
||||
Filter = MIN_MAG_MIP_LINEAR;
|
||||
AddressU = Clamp;
|
||||
AddressV = Clamp;
|
||||
};
|
||||
|
||||
float4 WindowSize;
|
||||
|
||||
struct PS_INPUT
|
||||
{
|
||||
float4 Pos : SV_POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
struct VS_INPUT
|
||||
{
|
||||
float4 Pos : POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
PS_INPUT VS(VS_INPUT input)
|
||||
{
|
||||
PS_INPUT output;
|
||||
|
||||
output.Pos = float4(input.Pos.x / WindowSize.x * 2 - 1, 1 - input.Pos.y / WindowSize.y * 2, 0, 1);
|
||||
|
||||
output.Color = input.Color;
|
||||
output.Tex = input.Tex;
|
||||
|
||||
output.Color = float4(input.Color.b * input.Color.a, input.Color.g * input.Color.a, input.Color.r * input.Color.a, input.Color.a);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
float4 PS(PS_INPUT input) : SV_Target
|
||||
{
|
||||
return tex2D.Sample(linearSampler, input.Tex) * input.Color;
|
||||
}
|
15
IDE/dist/shaders/Std.vert
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
uniform mat4 screenMatrix;
|
||||
|
||||
attribute vec4 position;
|
||||
attribute vec2 texCoord0;
|
||||
attribute vec4 color;
|
||||
|
||||
varying vec4 varying_color;
|
||||
varying vec2 varying_texCoord0;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = screenMatrix * position;
|
||||
varying_color = vec4(color.b * color.a, color.g * color.a, color.r * color.a, color.a);
|
||||
varying_texCoord0 = texCoord0;
|
||||
}
|
12
IDE/dist/shaders/Std_es.frag
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
precision lowp float;
|
||||
|
||||
uniform lowp sampler2D tex;
|
||||
uniform lowp sampler2D tex2;
|
||||
varying lowp vec4 varying_color;
|
||||
varying mediump vec2 varying_texCoord0;
|
||||
|
||||
void main()
|
||||
{
|
||||
lowp vec4 color = texture2D(tex, varying_texCoord0);
|
||||
gl_FragColor = color * varying_color;
|
||||
}
|
17
IDE/dist/shaders/Std_es.vert
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
precision mediump float;
|
||||
uniform mat4 screenMatrix;
|
||||
|
||||
attribute vec4 position;
|
||||
attribute vec2 texCoord0;
|
||||
attribute vec4 color;
|
||||
|
||||
precision lowp float;
|
||||
varying lowp vec4 varying_color;
|
||||
varying mediump vec2 varying_texCoord0;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = screenMatrix * position;
|
||||
varying_color = vec4(color.b * color.a, color.g * color.a, color.r * color.a, color.a);
|
||||
varying_texCoord0 = texCoord0;
|
||||
}
|
45
IDE/dist/shaders/Std_font.fx
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
Texture2D tex2D;
|
||||
SamplerState linearSampler
|
||||
{
|
||||
Filter = MIN_MAG_MIP_LINEAR;
|
||||
AddressU = Clamp;
|
||||
AddressV = Clamp;
|
||||
};
|
||||
|
||||
float4 WindowSize;
|
||||
|
||||
struct PS_INPUT
|
||||
{
|
||||
float4 Pos : SV_POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
struct VS_INPUT
|
||||
{
|
||||
float4 Pos : POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
PS_INPUT VS(VS_INPUT input)
|
||||
{
|
||||
PS_INPUT output;
|
||||
|
||||
output.Pos = float4(input.Pos.x / WindowSize.x * 2 - 1, 1 - input.Pos.y / WindowSize.y * 2, 0, 1);
|
||||
|
||||
output.Color = input.Color;
|
||||
output.Tex = input.Tex;
|
||||
|
||||
output.Color = float4(input.Color.b * input.Color.a, input.Color.g * input.Color.a, input.Color.r * input.Color.a, input.Color.a);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
float4 PS(PS_INPUT input) : SV_Target
|
||||
{
|
||||
float4 aTex = tex2D.Sample(linearSampler, input.Tex);
|
||||
float aGrey = input.Color.r * 0.299 + input.Color.g * 0.587 + input.Color.b * 0.114;
|
||||
float a = lerp(aTex.a, aTex.r, aGrey);
|
||||
return float4(a, a, a, a) * input.Color;
|
||||
}
|
46
IDE/dist/shaders/Std_hue.fx
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
Texture2D tex2D;
|
||||
SamplerState linearSampler
|
||||
{
|
||||
Filter = MIN_MAG_MIP_LINEAR;
|
||||
AddressU = Clamp;
|
||||
AddressV = Clamp;
|
||||
};
|
||||
|
||||
float4 WindowSize : register(vs, c0);
|
||||
|
||||
struct PS_INPUT
|
||||
{
|
||||
float4 Pos : SV_POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
struct VS_INPUT
|
||||
{
|
||||
float4 Pos : POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
PS_INPUT VS(VS_INPUT input)
|
||||
{
|
||||
PS_INPUT output;
|
||||
|
||||
output.Pos = float4(input.Pos.x / WindowSize.x * 2 - 1, 1 - input.Pos.y / WindowSize.y * 2, 0, 1);
|
||||
output.Tex = input.Tex;
|
||||
output.Color = float4(input.Color.b * input.Color.a, input.Color.g * input.Color.a, input.Color.r * input.Color.a, input.Color.a);
|
||||
return output;
|
||||
}
|
||||
|
||||
float4x4 ColorMatrix : register(ps, c0);
|
||||
|
||||
float4 PS(PS_INPUT input) : SV_Target
|
||||
{
|
||||
float4 col = tex2D.Sample(linearSampler, input.Tex) * input.Color;
|
||||
|
||||
col = mul(col, ColorMatrix);
|
||||
|
||||
//col += float4(0.1, 0.1, 0.1, 0.1);
|
||||
|
||||
return col;
|
||||
}
|
43
IDE/dist/shaders/Std_hue_font.fx
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
Texture2D tex2D;
|
||||
SamplerState linearSampler
|
||||
{
|
||||
Filter = MIN_MAG_MIP_LINEAR;
|
||||
AddressU = Clamp;
|
||||
AddressV = Clamp;
|
||||
};
|
||||
|
||||
float4 WindowSize : register(vs, c0);
|
||||
|
||||
struct PS_INPUT
|
||||
{
|
||||
float4 Pos : SV_POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
struct VS_INPUT
|
||||
{
|
||||
float4 Pos : POSITION;
|
||||
float2 Tex : TEXCOORD;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
PS_INPUT VS(VS_INPUT input)
|
||||
{
|
||||
PS_INPUT output;
|
||||
|
||||
output.Pos = float4(input.Pos.x / WindowSize.x * 2 - 1, 1 - input.Pos.y / WindowSize.y * 2, 0, 1);
|
||||
output.Tex = input.Tex;
|
||||
output.Color = float4(input.Color.b * input.Color.a, input.Color.g * input.Color.a, input.Color.r * input.Color.a, input.Color.a);
|
||||
return output;
|
||||
}
|
||||
|
||||
float4x4 ColorMatrix : register(ps, c0);
|
||||
|
||||
float4 PS(PS_INPUT input) : SV_Target
|
||||
{
|
||||
float4 aTex = tex2D.Sample(linearSampler, input.Tex);
|
||||
float aGrey = input.Color.r * 0.299 + input.Color.g * 0.587 + input.Color.b * 0.114;
|
||||
float a = lerp(aTex.r, aTex.a, aGrey);
|
||||
return float4(a, a, a, a) * input.Color;
|
||||
}
|