mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-05-22 18:55:45 +00:00
Shader_IR: Implement initial code for tracking indexed samplers.
This commit is contained in:
committed by
FernandoS27
parent
64496f2456
commit
603c861532
@@ -45,6 +45,12 @@ Node MakeNode(Args&&... args) {
|
||||
return std::make_shared<NodeData>(T(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
template <typename T, typename... Args>
|
||||
TrackSampler MakeTrackSampler(Args&&... args) {
|
||||
static_assert(std::is_convertible_v<T, TrackSamplerData>);
|
||||
return std::make_shared<TrackSamplerData>(T(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
Node Operation(OperationCode code, Args&&... args) {
|
||||
if constexpr (sizeof...(args) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user