mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-11 01:24:54 +02:00
17 lines
300 B
C++
17 lines
300 B
C++
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
namespace gl
|
|
{
|
|
static inline void insert_texture_barrier()
|
|
{
|
|
const auto& caps = gl::get_driver_caps();
|
|
|
|
if (caps.ARB_texture_barrier_supported)
|
|
glTextureBarrier();
|
|
else if (caps.NV_texture_barrier_supported)
|
|
glTextureBarrierNV();
|
|
}
|
|
}
|