2

amd instruction set spec said:

IMAGE_SAMPLE_D_CL_O SAMPLE_O, with LOD clamp specified in shader, with user derivatives.
IMAGE_SAMPLE_D_CL sample texture map, with LOD clamp specified in shader, with user derivatives.
IMAGE_SAMPLE_D sample texture map, with user derivatives
IMAGE_SAMPLE_CL sample texture map, with LOD clamp specified in shader.

in vulkan, i use textureGrad in glsl. Running on radeon, i got a image_sample_d in asm

How to get image_sapmle_d_cl in vulkan or opengl?

In other words, how to open LOD clamp specified in shader, as the spec said.

2
  • 1
    I'm not sure if it's supported by AMD, but there is ARB_sparse_texture_clamp which adds textureGradClampARB in addition to the sparse samplers it adds. Commented Nov 22, 2023 at 13:14
  • Ok,thanks. I have got this instrucion. Commented Nov 23, 2023 at 2:16

1 Answer 1

0

@vandench‘s comment solved this:

I'm not sure if it's supported by AMD, but there is ARB_sparse_texture_clamp which adds textureGradClampARB in addition to the sparse samplers it adds.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.