dcl_function_table (sm5 - asm)

Declare a function table.

dcl_function_table ft# = {fb#, fb#, ...}
Item Description
ft
[in] The function table entries.

Remarks

This function declares a function table as a set of function bodies that have been declared earlier.

This is like a C++ vtable except there is an entry per call site for an interface instead of per method.

There is no limit to how many function bodies can be listed in a function table.

It is valid for a given function body fb# to be referenced multiple times in one or more function tables, as a way of sharing common code.

This instruction applies to the following shader stages:

Vertex Hull Domain Geometry Pixel Compute
X X X X X X

Minimum Shader Model

This instruction is supported in the following shader models:

Shader Model Supported
Shader Model 5 yes
Shader Model 4.1 no
Shader Model 4 no
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

Shader Model 5 Assembly (DirectX HLSL)