ref_iface_IVDXAContext_CreateFragmentProgram - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
IVDXAContext interface
Creates a fragment program from a byte code description.
uint32 CreateFragmentProgram(VDXAProgramFormat programFormat, const void *data, uint32 length);
| programFormat | Byte code format type.
|
| data | Pointer to byte code data. |
| length | Length of byte code data, in bytes. |
This method is not thread-safe.
Handle to created fragment program, or zero on failure.
This method is expensive and should be called in startProc, not in
accelRunProc.
Currently, the supplied byte code program must target the Direct3D 9
shader model 2.0 profile. This is for hardware compatibility and
emulation reasons. The runtime will fail the creation if a shader is
compiled against the ps_2_x or ps_3_0 profile.
Copyright (C) 2007-2012 Avery Lee.