mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-17 11:27:59 -05: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