ref_iface_IVDXAContext_CreateFragmentProgram - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXAContext interface

IVDXAContext:: CreateFragmentProgram

Creates a fragment program from a byte code description.

uint32 CreateFragmentProgram(VDXAProgramFormat programFormat, const void *data, uint32 length);

Parameters

programFormat Byte code format type.
kVDXAPF_D3D9ByteCodePS20
Direct3D 9 pixel shader targeting the ps_2_0 profile.
data Pointer to byte code data.
length Length of byte code data, in bytes.

Thread safety

This method is not thread-safe.

Return value

Handle to created fragment program, or zero on failure.

Remarks

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.

⚠️ **GitHub.com Fallback** ⚠️