File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
include/nbl/builtin/hlsl/emulated Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,6 @@ struct _2_component_vec
4040 return y;
4141
4242 // TODO: avoid code duplication, make it constexpr
43- //using TAsUint = typename unsigned_integer_of_size<sizeof(T)>::type;
44- //TAsUint invalidComponentValue = nbl::hlsl::_static_cast<TAsUint>(0xdeadbeefbadcaffeull);
45- //return nbl::hlsl::bit_cast<T>(invalidComponentValue);
4643 return nbl::hlsl::undef<T>();
4744 }
4845
@@ -77,9 +74,6 @@ struct _3_component_vec
7774 return z;
7875
7976 // TODO: avoid code duplication, make it constexpr
80- //using TAsUint = typename unsigned_integer_of_size<sizeof(T)>::type;
81- //TAsUint invalidComponentValue = nbl::hlsl::_static_cast<TAsUint>(0xdeadbeefbadcaffeull >> (64 - sizeof(T) * 8));
82- //return nbl::hlsl::bit_cast<T>(invalidComponentValue);
8377 return nbl::hlsl::undef<T>();
8478 }
8579
@@ -118,9 +112,6 @@ struct _4_component_vec
118112 return w;
119113
120114 // TODO: avoid code duplication, make it constexpr
121- //using TAsUint = typename unsigned_integer_of_size<sizeof(T)>::type;
122- //uint64_t invalidComponentValue = nbl::hlsl::_static_cast<TAsUint>(0xdeadbeefbadcaffeull >> (64 - sizeof(T) * 8));
123- //return nbl::hlsl::bit_cast<T>(invalidComponentValue);
124115 return nbl::hlsl::undef<T>();
125116 }
126117
You can’t perform that action at this time.
0 commit comments