Skip to content

Indirect drawing does not work at all. No errors but no visible result either. #4

@k4G17eYWI

Description

@k4G17eYWI

Prerequisites

  • I have verified this issue is present in the develop branch
  • I have searched open and closed issues to ensure it has not already been reported.

MonoGame Version

MonoGame.Framework.Compute.Android 3.8.2

Which MonoGame platform are you using?

MonoGame Android Application (mgandroid)

Operating System

Android

Description

I fought a couple of days trying to get my indirect draw shader work on Android device and gained no result. So I've modified your Android example from a direct to an indirect drawing and got the same - nothing is being drawn. Unmodufied sample project works as it should.

this is my modified code:

args.SetData(new DrawInstancedArguments()
{
    InstanceCount = (uint) particleCount,
});
GraphicsDevice.DrawInstancedPrimitivesIndirect(PrimitiveType.PointList, args);

Steps to Reproduce

Deploy project from attachments to an Android device

Minimal Example Repo

No response

Expected Behavior

The example draws particles

Resulting Behavior

The example draws nothing but UI

Files

MonoGame-Shader-Samples-Mobile-compute_gpu_particles.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions