Shader编译到渲染器类型

Direct3D 9…………………….................................................#pragma only_renderers d3d9

Direct3D 11&12……………………......................................#pragma only_renderers d3d11 

OpenGL Core……………………...........................................#pragma only_renderers glcore 

OpenGL ES 2.0…………………….........................................#pragma only_renderers glcore gles 

OpenGL ES 3.0…………………….........................................#pragma only_renderers gles3

IOS Metal……………………...................................................#pragma only_renderers metal 

Direct3D 11 for Windows RT/Phone……………………#pragma only_renderers d3d11_9x 

Xbox One……………………...................................................#pragma only_renderers xboxone 

PlayStation 4……………………............................................#pragma only_renderers ps4 

PlayStation Vita……………………......................................#pragma only_renderers psp2 

Nintendo 3DS…………………….........................................#pragma only_renderers n3ds 

Nintendo Wii U……………………......................................#pragma only_renderers wiiu 

你可能感兴趣的:(Shader)