Why do tex2dLOD amd tex2dbias want float4 texture coords?

HLSL:

So tex2d needs a u and a v, of course. And tex2dLOD and tex2dbias need an additional argument, and putting it into tex coordinates seems reasonable.

But why float4 instead of float3? Why w instead of z? Is there some use for two-dimensional z coordinates?

Replay

Category: hlsl Time: 2016-07-31 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.170 (s). 12 q(s)