Jump to content
  • Advertisement

DX11 sample code to use tiled resource technology in d3d11.2?

This topic is 767 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


i got a strange result in calling UpdateTileMapping and UpdateTiles every frame like this which as same as the Mars Tiled Resource Sample do:

void CalledEveryFrame()
    vector<D3D11_TILED_RESOURCE_COORDINATE> coordinates; // 4 diffrent coordinates
    vector<D3D11_TIL_REGION_SIZE> regions; // 4 as same. but only set the NumTiles=1
    vector<UINT> offsets(4, 0);
    vector<UINT> rangeFlags(4, 0);
    vector<UINT> rangeTileCounts(4, 1);

    deviceContext->UpdateTileMappings(myMiscTexture, 4, coordinates.data(), 
        regions.data(), myMiscBuffer, 4, rangFlags.data(), offsets.data(). 
        rangeTileCounts.data(), D3D11_TILE_MAPPING_NO_OVERWRITE);

    map<int, vector<float>> myTileData; // 4 with different data.
    for (int index = 0; index < coordinates.size(); index++)
         D3D11_TILED_RESOURCE_COORDINATE coord = coordinate[index];
         D3D11_TILE_REGION_SIZE region = regions[index];
         deviceContext->UpdateTiles(myMiscTexture, &coord, &region, myTileData[index].data(), D3D11_TILE_COPY_NO_OVERWRITE);

i alway got 4 same TileData show in different coordinate.

if i copy the code above with another 4 coordinate like this:

void CalledEveryFrame()


i alway got 8 same TileData showing, why?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!