Skip to content

Commit 6683cd5

Browse files
author
kevyuu
committed
Remove commented code on emulated/vector_t.hlsl
1 parent aa9e24d commit 6683cd5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/nbl/builtin/hlsl/emulated/vector_t.hlsl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)