Giter Site home page Giter Site logo

Comments (4)

reduz avatar reduz commented on June 20, 2024

As a note, it seems if the main texture is created as E5B9G9R9_UFLOAT_PACK32 and the view is R32UI, RenderDoc displays properly this texture as RGBE. The problem is the other way around.

from renderdoc.

reduz avatar reduz commented on June 20, 2024

Actually, researching a bit further, this seems like a general impossibility in RenderDoc to debug UINT formats, it just does not work with any format. You can´t take an UINT texture and output anything in your shader that looks any other than black. (testing with a RGBA16UINT, same thing, even though the texture has data, any attempt to convert this data to anything viewable fails and results in black).

from renderdoc.

baldurk avatar baldurk commented on June 20, 2024

I'm not able to reproduce this (testing on windows + NV). In a simple test with an R32UI texture the shader you posted (slightly modified as I don't have any valid aliased RGB9E5 data) works as expected:

// issue3148.glsl
#version 450

layout (location = 0) in vec2 uv;

layout (location = 0) out vec4 color_out;

layout (binding = RD_UINT_3D_BINDING) uniform usampler3D texUInt3D;

void main()
{
	vec2 uv_inv = uv;

	vec2 posf = uv_inv*vec2(RD_TexDim().xy).xy;
	ivec2 posi = ivec2(posf).xy;
	uint rgbeui = texelFetch(texUInt3D,ivec3(posi,RD_SelectedSliceFace()),0 ).r;
	
	//vec4 rgbe = vec4((uvec4(rgbeui) >> uvec4(0,9,18,27)) & uvec4(0x1FF,0x1FF,0x1FF,0x1F));
	//vec3 emission = rgbe.rgb * pow( 2.0, rgbe.a - 15.0 - 9.0 );

	if(rgbeui > 50)
		color_out = vec4( 1,0,1,1);
	else if(rgbeui > 0)
		color_out = vec4( 0,1,0,1);
	else
		color_out = vec4( 0,0,0,1);
}

image

Can you please share a full and complete reproduction case I can use to reproduce your exact issue, as it may be something more specific than you have detailed here.

If you have another system available, it would also be helpful to check on a different driver or GPU in case this is a driver issue. You didn't say which driver version you're using, so it would also be worth checking to see if a driver update is available.

from renderdoc.

baldurk avatar baldurk commented on June 20, 2024

Closing this due to lack of activity from the reporter and no further information to investigate.

If you are the reporter and this bug is still a problem for you, or you are someone finding this issue and you believe this bug is still a problem and you have more information to share, please do not comment here and instead please open a new issue. You can reference this issue if you wish, but opening a new issue prevents confusion of accidentally linking two unrelated bugs and means that each issue can be handled in a clean process.

from renderdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.