シェーダー モデル 4 アセンブリ

シェーダー モデル 4 では、HLSL でシェーダーをプログラムする必要があります。 ただし、シェーダー コンパイラは HLSL コードを、デバイス上で実行されるアセンブリにコンパイルします。 PIX for Windows を使用してシェーダーをデバッグする場合は、HLSL またはアセンブリにシェーダー コードを表示することを選択できます。 このセクションでは、シェーダー のデバッグ時に発生する可能性があるシェーダー モデル 4 とシェーダー モデル 4.1 のアセンブリ命令の一覧を示します。

命令修飾子
add
and
break
breakc
call
callc
case
continue
continuec
カット
dcl_constantBuffer
dcl_globalFlags
dcl_immediateConstantBuffer
dcl_indexableTemp
dcl_indexRange
dcl_input
dcl_input_sv
vPrim のdcl_input
dcl_maxOutputVertexCount
dcl_output
dcl_output oDepth
dcl_output_sgv
dcl_output_siv
dcl_outputTopology
dcl_resource
dcl_sampler
dcl_temps
default
deriv_rtx
deriv_rty
破棄
div
dne
Dp2
dp3
dp4
または
出力
emitThenCut
Endif
endloop
endswitch
eq
exp
Frc
ftoi
ftou
ge
iaddieq
if
Ige
Ilt
Imad
imin
imul
伊根
ineg
ishl
ishr
itof
label
ld
log
loop
lt
mad
max
min
Mov
movc
mul
ne
Nop
not
or
Resinfo
Ret
retc
round_ne
round_ni
round_pi
round_z
rsq
sample
sample_b
sample_c
sample_c_lz
sample_d
sample_l
sincos
sqrt
switch
udiv
uge
ult
umad
umax
umin
umul
ushr
utof
xor

シェーダー モデル 4.1 アセンブリ

シェーダー モデル 4.1 では、シェーダー モデル 4.0 のすべての手順と次の追加手順がサポートされています。

gather4
ld2dms
Lod
sampleinfo
samplepos

Asm シェーダー リファレンス

シェーダー モデル 4