Answered
How to use scripts to determine whether opencl can be used
How to use scripts to determine whether photoshop opencl can be used.
Or determine if there is a discrete graphics card
How to use scripts to determine whether photoshop opencl can be used.
Or determine if there is a discrete graphics card
var r = new ActionReference();
r.putProperty(stringIDToTypeID("property"), stringIDToTypeID("cachePrefs"));
r.putEnumerated(stringIDToTypeID("application"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
var openglEnabled = executeActionGet(r).getObjectValue(stringIDToTypeID("cachePrefs")).getBoolean(stringIDToTypeID("openglEnabled"));
var useOpenCL = executeActionGet(r).getObjectValue(stringIDToTypeID("cachePrefs")).getObjectValue(stringIDToTypeID("openglAdvanced")).getBoolean(stringIDToTypeID("CLCompute"));
alert(openglEnabled && useOpenCL);
Не? : )
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.