mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Added OpenCL texture decoding to RGBA usable by DX11 for formats RGB565, RGBA8, RGB5A3 and CMPR
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5765 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -102,11 +102,11 @@ void TexDecoder_OpenCL_Initialize() {
|
||||
g_program = OpenCL::CompileProgram(code.c_str());
|
||||
|
||||
int i = 0;
|
||||
for(int i = 0; i < GX_TF_CMPR; ++i) {
|
||||
for(int i = 0; i <= GX_TF_CMPR; ++i) {
|
||||
if(g_DecodeParametersNative[i].name)
|
||||
g_DecodeParametersNative[i].kernel = OpenCL::CompileKernel(g_program, g_DecodeParametersNative[i].name);
|
||||
|
||||
if(false && g_DecodeParametersRGBA[i].name)
|
||||
if(g_DecodeParametersRGBA[i].name)
|
||||
g_DecodeParametersRGBA[i].kernel = OpenCL::CompileKernel(g_program, g_DecodeParametersRGBA[i].name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user